Skip to content

Commit 4191146

Browse files
committed
Fixed #1185
1 parent 29b02de commit 4191146

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/VirtualTrees.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11988,7 +11988,7 @@ function TVTColors.GetColor(const Index: TVTColorEnum): TColor;
1198811988
begin
1198911989
// Only try to fetch the color via StyleServices if theses are enabled
1199011990
// Return default/user defined color otherwise
11991-
if FOwner.VclStyleEnabled then
11991+
if not (csDesigning in FOwner.ComponentState) { see issue #1185 } and FOwner.VclStyleEnabled then
1199211992
begin
1199311993
// If the ElementDetails are not defined, fall back to the SystemColor
1199411994
case Index of

0 commit comments

Comments
 (0)