Use std::min and std::max, not the misc versions.
This commit is contained in:
@ -217,7 +217,7 @@ void Textblock::TextblockIterator::getAllocation (int start, int end,
|
||||
bool regardBorder =
|
||||
textblock->mustBorderBeRegarded (textblock->lines->size ());
|
||||
textOffset =
|
||||
misc::max (regardBorder ? textblock->newLineLeftBorder : 0,
|
||||
std::max (regardBorder ? textblock->newLineLeftBorder : 0,
|
||||
textblock->boxOffsetX () + textblock->leftInnerPadding
|
||||
+ (textblock->lines->size () == 0 ?
|
||||
textblock->line1OffsetEff : 0));
|
||||
@ -231,7 +231,7 @@ void Textblock::TextblockIterator::getAllocation (int start, int end,
|
||||
w->content.type == core::Content::WIDGET_IN_FLOW ?
|
||||
w->size.ascent - w->content.widget->getStyle()->margin.top :
|
||||
w->size.ascent;
|
||||
lineBorderAscent = misc::max (lineBorderAscent, borderAscent);
|
||||
lineBorderAscent = std::max (lineBorderAscent, borderAscent);
|
||||
}
|
||||
}
|
||||
|
||||
@ -255,7 +255,7 @@ void Textblock::TextblockIterator::getAllocation (int start, int end,
|
||||
int wordEnd = strlen(word->content.text);
|
||||
|
||||
if (start > 0 || end < wordEnd) {
|
||||
end = misc::min(end, wordEnd); /* end could be INT_MAX */
|
||||
end = std::min(end, wordEnd); /* end could be INT_MAX */
|
||||
allocation->width =
|
||||
textblock->textWidth (word->content.text, start, end - start,
|
||||
word->style,
|
||||
|
||||
Reference in New Issue
Block a user