Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyScene.cpp @ 931:fc38c4ab17e3 toa2019072401
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 24 Jul 2019 18:46:06 +0200 |
parents | 1b49e78d91d0 |
children | b537002f83a9 d33ae2b0db9d |
line wrap: on
line diff
--- 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<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) {