# HG changeset patch # User Alain Mazy # Date 1563798563 -7200 # Node ID 9ba1e1198e7321e2ed7938d470b2e526d42636fb # Parent 6b81c5453382d71ddda4e0ac8258635389e67e51# Parent 988fa647df21af5c4a0dcbef58df59acbf915900 merge diff -r 988fa647df21 -r 9ba1e1198e73 Framework/Radiography/RadiographyScene.cpp --- a/Framework/Radiography/RadiographyScene.cpp Mon Jul 22 11:22:56 2019 +0200 +++ b/Framework/Radiography/RadiographyScene.cpp Mon Jul 22 14:29:23 2019 +0200 @@ -606,8 +606,8 @@ Extent2D extent = GetSceneExtent(); - int w = static_cast(std::ceil(extent.GetWidth() / pixelSpacingX)); - int h = static_cast(std::ceil(extent.GetHeight() / pixelSpacingY)); + int w = static_cast(std::round(extent.GetWidth() / pixelSpacingX)); + int h = static_cast(std::round(extent.GetHeight() / pixelSpacingY)); if (w < 0 || h < 0) {