diff OrthancStone/Sources/Toolbox/Internals/RectanglesIntegerProjection.cpp @ 1905:e318b524ad3f

use UnionOfRectangles algorithm to render RT-STRUCT
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Jan 2022 18:50:35 +0100
parents 08f2476e8f5e
children 07964689cb0b
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/Internals/RectanglesIntegerProjection.cpp	Mon Jan 31 18:22:57 2022 +0100
+++ b/OrthancStone/Sources/Toolbox/Internals/RectanglesIntegerProjection.cpp	Mon Jan 31 18:50:35 2022 +0100
@@ -58,7 +58,7 @@
         }
         else if (value_ == other.value_)
         {
-          return isLow_;
+          return static_cast<int>(isLow_) < static_cast<int>(other.isLow_);
         }
         else
         {