From 4f06425a0314103ff5653e6f93a6551a08c39f56 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 7 Sep 2015 13:51:11 +0100 Subject: [PATCH] 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. --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index e1c7cead50f..e3fad513c4f 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5674,11 +5674,11 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn) } /* update the other column info */ - LISTVIEW_UpdateItemSize(infoPtr); if(DPA_GetPtrCount(infoPtr->hdpaColumns) == 0) LISTVIEW_InvalidateList(infoPtr); else LISTVIEW_ScrollColumns(infoPtr, nColumn, -(rcCol.right - rcCol.left)); + LISTVIEW_UpdateItemSize(infoPtr); return TRUE; } -- 2.11.4.GIT