From 7462a8f53f23cf44a5a278c99291ad52d34b40ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Belleng=C3=A9?= Date: Mon, 21 Feb 2005 18:34:17 +0000 Subject: [PATCH] Fix SetItem so that items don't get wrongly re-ordered. --- dlls/comctl32/header.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index c58d11061a9..abfd5e04108 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -1203,10 +1203,8 @@ HEADER_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam) { lpItem->iOrder = phdi->iOrder; } - else - lpItem->iOrder = nItem; - HEADER_SendHeaderNotify (hwnd, HDN_ITEMCHANGEDA, nItem, phdi->mask); + HEADER_SendHeaderNotify (hwnd, HDN_ITEMCHANGEDA, nItem, phdi->mask); HEADER_SetItemBounds (hwnd); @@ -1270,10 +1268,8 @@ HEADER_SetItemW (HWND hwnd, WPARAM wParam, LPARAM lParam) { lpItem->iOrder = phdi->iOrder; } - else - lpItem->iOrder = nItem; - HEADER_SendHeaderNotify(hwnd, HDN_ITEMCHANGEDW, nItem, phdi->mask); + HEADER_SendHeaderNotify(hwnd, HDN_ITEMCHANGEDW, nItem, phdi->mask); HEADER_SetItemBounds (hwnd);