comctl32/rebar: Avoid empty band range when changing layout.

This commit is contained in:
Nikolay Sivov 2009-12-24 00:54:29 +03:00 committed by Alexandre Julliard
parent 6398448974
commit 02c06f0d66
1 changed files with 2 additions and 1 deletions

View File

@ -1377,6 +1377,7 @@ REBAR_Layout(REBAR_INFO *infoPtr)
xMin += lpBand->cxMinBand;
}
if (rowstart < infoPtr->uNumBands)
REBAR_LayoutRow(infoPtr, rowstart, infoPtr->uNumBands, adjcx, &row, &yPos);
if (!(infoPtr->dwStyle & RBS_VARHEIGHT))