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,7 +1377,8 @@ REBAR_Layout(REBAR_INFO *infoPtr)
xMin += lpBand->cxMinBand;
}
REBAR_LayoutRow(infoPtr, rowstart, infoPtr->uNumBands, adjcx, &row, &yPos);
if (rowstart < infoPtr->uNumBands)
REBAR_LayoutRow(infoPtr, rowstart, infoPtr->uNumBands, adjcx, &row, &yPos);
if (!(infoPtr->dwStyle & RBS_VARHEIGHT))
yPos = REBAR_SetBandsHeight(infoPtr, first_visible(infoPtr), infoPtr->uNumBands, 0);