summaryrefslogtreecommitdiff
path: root/wx+/image_tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/image_tools.cpp')
-rwxr-xr-xwx+/image_tools.cpp2
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:
bgstack15