changeset 928:1b49e78d91d0

fix for older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Jul 2019 11:50:21 +0200
parents 39d2a3661665
children fc38c4ab17e3
files Framework/Radiography/RadiographyScene.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)
     {