comparison 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
comparison
equal deleted inserted replaced
98:a33abae66344 99:efd9ef2b67f1
74 74
75 assert(!IsEmpty()); 75 assert(!IsEmpty());
76 76
77 x1_ = std::min(x1_, other.x1_); 77 x1_ = std::min(x1_, other.x1_);
78 y1_ = std::min(y1_, other.y1_); 78 y1_ = std::min(y1_, other.y1_);
79 x2_ = std::min(x2_, other.x2_); 79 x2_ = std::max(x2_, other.x2_);
80 y2_ = std::min(y2_, other.y2_); 80 y2_ = std::max(y2_, other.y2_);
81 81
82 assert(x1_ <= x2_ && 82 assert(x1_ <= x2_ &&
83 y1_ <= y2_); // This is the invariant of the structure 83 y1_ <= y2_); // This is the invariant of the structure
84 } 84 }
85 85