浏览代码

Bug 2025: Panels are drawn incorrectly after toggling Full row select

https://winscp.net/tracker/2025

Source commit: f9b7d808c6fe1803c45e580e649d6a754b707b93
Martin Prikryl 4 年之前
父节点
当前提交
79579f585b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/forms/CustomScpExplorer.cpp

+ 2 - 2
source/forms/CustomScpExplorer.cpp

@@ -1039,8 +1039,8 @@ void __fastcall TCustomScpExplorerForm::UpdateRowSelect(TCustomDirView * DirView
   if (DirView->RowSelect != WinConfiguration->FullRowSelect)
   {
     DirView->RowSelect = WinConfiguration->FullRowSelect;
-    // selection is not redrawn automatically when RowSelect changes
-    DirView->Invalidate();
+    // Without this, the panel turns gray and unused part of header turns black
+    DirView->Perform(CM_COLORCHANGED, 0, 0);
   }
 }
 //---------------------------------------------------------------------------