changeset 924:9ba1e1198e73

merge
author Alain Mazy <alain@mazy.be>
date Mon, 22 Jul 2019 14:29:23 +0200
parents 6b81c5453382 (diff) 988fa647df21 (current diff)
children e594e76e0a81 861c080ef47b
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp	Mon Jul 22 11:22:56 2019 +0200
+++ b/Framework/Radiography/RadiographyScene.cpp	Mon Jul 22 14:29:23 2019 +0200
@@ -606,8 +606,8 @@
 
     Extent2D extent = GetSceneExtent();
 
-    int w = static_cast<int>(std::ceil(extent.GetWidth() / pixelSpacingX));
-    int h = static_cast<int>(std::ceil(extent.GetHeight() / pixelSpacingY));
+    int w = static_cast<int>(std::round(extent.GetWidth() / pixelSpacingX));
+    int h = static_cast<int>(std::round(extent.GetHeight() / pixelSpacingY));
 
     if (w < 0 || h < 0)
     {