Skip to content

Commit d3c0e71

Browse files
committed
Fixed issue #1186: Prevent repaint loop
1 parent 4191146 commit d3c0e71

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Source/VirtualTrees.pas

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12079,9 +12079,10 @@ procedure TVTColors.SetColor(const Index: TVTColorEnum; const Value: TColor);
1207912079
cBorderColor:
1208012080
RedrawWindow(FOwner.Handle, nil, 0, RDW_FRAME or RDW_INVALIDATE or RDW_NOERASE or RDW_NOCHILDREN)
1208112081
else
12082-
FOwner.Invalidate;
12083-
end;
12084-
end;
12082+
if not (tsPainting in FOwner.TreeStates) then
12083+
FOwner.Invalidate;
12084+
end;//case
12085+
end;// if
1208512086
end;
1208612087
end;
1208712088

0 commit comments

Comments
 (0)