# HG changeset patch # User Benjamin Golinvaux # Date 1563986766 -7200 # Node ID fc38c4ab17e31b3ccc20c8d8bc557ae8ad4c3b0e # Parent bf03cb879eb48dfc2bd27215a7f785c6c332d056# Parent 1b49e78d91d0f493cf487471d653c38b71b5d5d8 Merge diff -r bf03cb879eb4 -r fc38c4ab17e3 Framework/Radiography/RadiographyScene.cpp --- a/Framework/Radiography/RadiographyScene.cpp Wed Jul 24 18:45:33 2019 +0200 +++ b/Framework/Radiography/RadiographyScene.cpp Wed Jul 24 18:46:06 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) {