소스 검색

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);
   }
 }
 //---------------------------------------------------------------------------