# HG changeset patch # User Sebastien Jodogne # Date 1563875421 -7200 # Node ID 1b49e78d91d0f493cf487471d653c38b71b5d5d8 # Parent 39d2a3661665506469cb5b019cf872155052c702 fix for older compilers diff -r 39d2a3661665 -r 1b49e78d91d0 Framework/Radiography/RadiographyScene.cpp --- 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(std::round(extent.GetWidth() / pixelSpacingX)); - int h = static_cast(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) {