diff Framework/Toolbox/Extent.cpp @ 99:efd9ef2b67f1 wasm

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 May 2017 21:08:31 +0200
parents d18dcc963930
children 53bd9277b025
line wrap: on
line diff
--- a/Framework/Toolbox/Extent.cpp	Tue May 30 15:02:24 2017 +0200
+++ b/Framework/Toolbox/Extent.cpp	Tue May 30 21:08:31 2017 +0200
@@ -76,8 +76,8 @@
 
     x1_ = std::min(x1_, other.x1_);
     y1_ = std::min(y1_, other.y1_);
-    x2_ = std::min(x2_, other.x2_);
-    y2_ = std::min(y2_, other.y2_);
+    x2_ = std::max(x2_, other.x2_);
+    y2_ = std::max(y2_, other.y2_);
 
     assert(x1_ <= x2_ &&
            y1_ <= y2_);    // This is the invariant of the structure