(svn r18605) -Codechange: Coding style fixes, prevent useless calls to UpdateWidgetSize().

This commit is contained in:
alberth
2009-12-22 19:40:23 +00:00
parent 3d2c126268
commit 7dbc77a1e7
3 changed files with 8 additions and 8 deletions

View File

@@ -971,7 +971,7 @@ void NWidgetStacked::SetupSmallestSize(Window *w, bool init_array)
Dimension fill = {0, 0};
Dimension resize = {0, 0};
/* Here we're primarily interested in the value of resize */
w->UpdateWidgetSize(this->index, &size, padding, &fill, &resize);
if (this->index >= 0) w->UpdateWidgetSize(this->index, &size, padding, &fill, &resize);
this->smallest_x = size.width;
this->smallest_y = size.height;