Explorar o código

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

https://winscp.net/tracker/2025

Source commit: f9b7d808c6fe1803c45e580e649d6a754b707b93
Martin Prikryl %!s(int64=4) %!d(string=hai) anos
pai
achega
79579f585b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
   }
 }
 //---------------------------------------------------------------------------