Use std::min and std::max, not the misc versions.
This commit is contained in:
+4
-4
@@ -135,10 +135,10 @@ void Iterator::scrollTo (Iterator *it1, Iterator *it2, int start, int end,
|
||||
curEnd = INT_MAX;
|
||||
|
||||
eit3->getAllocation (curStart, curEnd, &alloc);
|
||||
x1 = misc::min (x1, alloc.x);
|
||||
x2 = misc::max (x2, alloc.x + alloc.width);
|
||||
y1 = misc::min (y1, alloc.y);
|
||||
y2 = misc::max (y2, alloc.y + alloc.ascent + alloc.descent);
|
||||
x1 = std::min (x1, alloc.x);
|
||||
x2 = std::max (x2, alloc.x + alloc.width);
|
||||
y1 = std::min (y1, alloc.y);
|
||||
y2 = std::max (y2, alloc.y + alloc.ascent + alloc.descent);
|
||||
}
|
||||
|
||||
delete eit3;
|
||||
|
||||
Reference in New Issue
Block a user