Ignore negative widths in HEADER_SetItemBounds.

This commit is contained in:
Mike McCormack 2001-09-17 20:25:52 +00:00 committed by Alexandre Julliard
parent 71ec7d6600
commit 7c1db50c2f
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ HEADER_SetItemBounds (HWND hwnd)
phdi->rect.top = rect.top;
phdi->rect.bottom = rect.bottom;
phdi->rect.left = x;
phdi->rect.right = phdi->rect.left + phdi->cxy;
phdi->rect.right = phdi->rect.left + ((phdi->cxy>0)?phdi->cxy:0);
x = phdi->rect.right;
}
}