(svn r23691) -Fix: signed/unsigned issues, causing asserts for some languages in relation to the serverlist

This commit is contained in:
truebrain
2011-12-31 10:55:00 +00:00
parent b1e95c9bd7
commit c967d260bc

View File

@@ -146,7 +146,7 @@ public:
NWidgetBase *child_wid = this->head->next; NWidgetBase *child_wid = this->head->next;
/* The first and last widget are always visible, determine which other should be visible */ /* The first and last widget are always visible, determine which other should be visible */
for (uint i = 1; i < lengthof(this->visible) - 1; i++) { for (uint i = 1; i < lengthof(this->visible) - 1; i++) {
if (given_width - child_wid->smallest_x > MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER && this->visible[i - 1]) { if (given_width > MINIMUM_NAME_WIDTH_BEFORE_NEW_HEADER + child_wid->smallest_x && this->visible[i - 1]) {
this->visible[i] = true; this->visible[i] = true;
given_width -= child_wid->smallest_x; given_width -= child_wid->smallest_x;
} else { } else {