From 50d77e6877a3272f65e85a3270a0afa16ea94ddd Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 2 Mar 2005 10:12:52 +0000 Subject: [PATCH] - Fix one more place where the code assumes row indices are zero-based. - Document a known bug in the layout code. --- dlls/comctl32/rebar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index c9343058661..5c98a68dde0 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -1595,7 +1595,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient) /* now adjust all rectangles by using the height found above */ xy = 0; - row = 1; + row = 0; for (i=0; iuNumBands; i++) { lpBand = &infoPtr->bands[i]; if (HIDDENBAND(lpBand)) continue; @@ -1771,6 +1771,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient) if( !(lpBand->fDraw&DRAW_LAST_IN_ROW) ) continue; + /* FIXME: this next line is wrong, but fixing it to be inverted causes IE's sidebars to be the wrong size */ if (lpBand->fMask & RBBS_VARIABLEHEIGHT) continue; if (((INT)lpBand->cyMaxChild < 1) || ((INT)lpBand->cyIntegral < 1)) {