From a98326eb2954ac1e79f5eac28dbeab3ec15e047f Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sat, 30 Jun 2018 12:43:08 +0200 Subject: 10.1 --- wx+/image_tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wx+/image_tools.cpp') 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(std::floor((totalExtent - imageExtent) / 2.0)); //consistency: round down negative values, too! case ImageStackAlignment::LEFT: return 0; case ImageStackAlignment::RIGHT: -- cgit