Skip to content

Commit 922dc60

Browse files
committed
Fix selection draw in empty areas when header is visible
1 parent 9a68fb6 commit 922dc60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/VirtualTrees.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30559,6 +30559,9 @@ procedure TBaseVirtualTree.PaintTree(TargetCanvas: TCanvas; const Window: TRect;
3055930559
if DrawSelectionRect then
3056030560
begin
3056130561
R := OrderRect(FNewSelRect);
30562+
//lclheader
30563+
if hoVisible in FHeader.Options then
30564+
OffsetRect(R, 0, FHeader.Height);
3056230565
// Remap the selection rectangle to the current window of the tree.
3056330566
// Since Target has been used for other tasks BaseOffset got the left extent of the target position here.
3056430567
OffsetRect(R, -Target.X + BaseOffset - Window.Left, -Target.Y + FOffsetY);

0 commit comments

Comments
 (0)