Mercurial > hg > orthanc-stone
changeset 931:fc38c4ab17e3 toa2019072401
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 24 Jul 2019 18:46:06 +0200 |
parents | bf03cb879eb4 (current diff) 1b49e78d91d0 (diff) |
children | 061a58c0011a |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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) {