Different approach of fixing the "Bad interval range" warning log spam

meow-7.2.2
Ansariel 2015-11-27 08:49:20 +01:00
parent 4f28da6556
commit 9a2e9c5abb
1 changed files with 8 additions and 1 deletions

View File

@ -800,7 +800,14 @@ void LLToolBar::updateLayoutAsNeeded()
// button->reshape(button->mWidthRange.getMin(), button->mDesiredHeight);
if (equalized_width)
{
button->mWidthRange.setRange(button->mWidthRange.getMin(), equalized_width);
if (button->mWidthRange.getMin() > equalized_width)
{
button->mWidthRange.setRange(equalized_width, equalized_width);
}
else
{
button->mWidthRange.setRange(button->mWidthRange.getMin(), equalized_width);
}
button->reshape(equalized_width, button->mDesiredHeight);
}
else