From 7c1db50c2fc18b7f8398359a87425083250fe1f4 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 17 Sep 2001 20:25:52 +0000 Subject: [PATCH] Ignore negative widths in HEADER_SetItemBounds. --- dlls/comctl32/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index 351c8c9e26b..744154364b2 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -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; } }