Skip to content

Commit 737c128

Browse files
committed
Fixed #1185
1 parent 37b811c commit 737c128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/VirtualTrees.Colors.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function TVTColors.GetColor(const Index : TVTColorEnum) : TColor;
142142
begin
143143
//Only try to fetch the color via StyleServices if theses are enabled
144144
//Return default/user defined color otherwise
145-
if TreeView.VclStyleEnabled then
145+
if not (csDesigning in TreeView.ComponentState) { see issue #1185 } and TreeView.VclStyleEnabled then
146146
begin
147147
//If the ElementDetails are not defined, fall back to the SystemColor
148148
case Index of

0 commit comments

Comments
 (0)