Commit d3608cf4 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

comctl32: rebar: Fix SizeToHeight when no bands visible.

parent 1eba6c76
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment