comctl32: rebar: Fix SizeToHeight when no bands visible.
This commit is contained in:
parent
1eba6c7644
commit
d3608cf4b2
|
@ -1442,6 +1442,9 @@ REBAR_SizeToHeight(REBAR_INFO *infoPtr, int height)
|
||||||
UINT uNumRows = infoPtr->uNumRows;
|
UINT uNumRows = infoPtr->uNumRows;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (uNumRows == 0) /* avoid division by 0 */
|
||||||
|
return;
|
||||||
|
|
||||||
/* That's not exactly what Windows does but should be similar */
|
/* That's not exactly what Windows does but should be similar */
|
||||||
|
|
||||||
/* Pass one: break-up/glue rows */
|
/* Pass one: break-up/glue rows */
|
||||||
|
|
Loading…
Reference in New Issue