comctl32/rebar: Avoid empty band range when changing layout.
This commit is contained in:
parent
6398448974
commit
02c06f0d66
@ -1377,7 +1377,8 @@ REBAR_Layout(REBAR_INFO *infoPtr)
|
|||||||
|
|
||||||
xMin += lpBand->cxMinBand;
|
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))
|
if (!(infoPtr->dwStyle & RBS_VARHEIGHT))
|
||||||
yPos = REBAR_SetBandsHeight(infoPtr, first_visible(infoPtr), infoPtr->uNumBands, 0);
|
yPos = REBAR_SetBandsHeight(infoPtr, first_visible(infoPtr), infoPtr->uNumBands, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user