Commit 4f06425a authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comctl32: Set the item size after LISTVIEW_ScrollColumns().

LISTVIEW_ScrollColumns() increments the item width by the scroll delta, so we need the original width to still be present.
parent 07cc9a34
...@@ -5674,11 +5674,11 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn) ...@@ -5674,11 +5674,11 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn)
} }
/* update the other column info */ /* update the other column info */
LISTVIEW_UpdateItemSize(infoPtr);
if(DPA_GetPtrCount(infoPtr->hdpaColumns) == 0) if(DPA_GetPtrCount(infoPtr->hdpaColumns) == 0)
LISTVIEW_InvalidateList(infoPtr); LISTVIEW_InvalidateList(infoPtr);
else else
LISTVIEW_ScrollColumns(infoPtr, nColumn, -(rcCol.right - rcCol.left)); LISTVIEW_ScrollColumns(infoPtr, nColumn, -(rcCol.right - rcCol.left));
LISTVIEW_UpdateItemSize(infoPtr);
return TRUE; return TRUE;
} }
......
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