comctl32: rebar: Fix SizeToHeight when no bands visible.

This commit is contained in:
Mikołaj Zalewski 2008-03-06 22:06:21 +01:00 committed by Alexandre Julliard
parent 1eba6c7644
commit d3608cf4b2
1 changed files with 3 additions and 0 deletions

View File

@ -1442,6 +1442,9 @@ REBAR_SizeToHeight(REBAR_INFO *infoPtr, int height)
UINT uNumRows = infoPtr->uNumRows;
int i;
if (uNumRows == 0) /* avoid division by 0 */
return;
/* That's not exactly what Windows does but should be similar */
/* Pass one: break-up/glue rows */