Commit 7462a8f5 authored by Maxime Bellengé's avatar Maxime Bellengé Committed by Alexandre Julliard

Fix SetItem so that items don't get wrongly re-ordered.

parent 1e33acaa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment