diff options
Diffstat (limited to 'wx+/image_tools.cpp')
-rwxr-xr-x | wx+/image_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wx+/image_tools.cpp b/wx+/image_tools.cpp index 26a5b37c..88a78b21 100755 --- a/wx+/image_tools.cpp +++ b/wx+/image_tools.cpp @@ -83,7 +83,7 @@ wxImage zen::stackImages(const wxImage& img1, const wxImage& img2, ImageStackLay switch (align) { case ImageStackAlignment::CENTER: - return (totalExtent - imageExtent) / 2; + return static_cast<int>(std::floor((totalExtent - imageExtent) / 2.0)); //consistency: round down negative values, too! case ImageStackAlignment::LEFT: return 0; case ImageStackAlignment::RIGHT: |