diff Framework/Radiography/RadiographyScene.cpp @ 928:1b49e78d91d0

fix for older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Jul 2019 11:50:21 +0200
parents 6b81c5453382
children b537002f83a9 d33ae2b0db9d
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp	Mon Jul 22 16:03:10 2019 +0200
+++ b/Framework/Radiography/RadiographyScene.cpp	Tue Jul 23 11:50:21 2019 +0200
@@ -606,8 +606,8 @@
 
     Extent2D extent = GetSceneExtent();
 
-    int w = static_cast<int>(std::round(extent.GetWidth() / pixelSpacingX));
-    int h = static_cast<int>(std::round(extent.GetHeight() / pixelSpacingY));
+    int w = boost::math::iround(extent.GetWidth() / pixelSpacingX);
+    int h = boost::math::iround(extent.GetHeight() / pixelSpacingY);
 
     if (w < 0 || h < 0)
     {