Explorar el Código

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

https://winscp.net/tracker/2025

Source commit: f9b7d808c6fe1803c45e580e649d6a754b707b93
Martin Prikryl hace 4 años
padre
commit
79579f585b
Se han modificado 1 ficheros con 2 adiciones y 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);
   }
 }
 //---------------------------------------------------------------------------