CMenuWidget::calcSize: Add forgotten 'wi'

This commit is contained in:
M. Liebmann
2017-03-13 10:33:32 +01:00
parent fa2fd94f77
commit d0b02a9752

View File

@@ -1116,7 +1116,7 @@ void CMenuWidget::calcSize()
else
wi = 0;
}
int tmpw = items[i]->getWidth() + 2*OFFSET_INNER_MID; /* 10 pixels to the left and right of the text */
int tmpw = items[i]->getWidth() + 2*OFFSET_INNER_MID + wi; /* 10 pixels to the left and right of the text */
if (tmpw > width)
width = tmpw;
}