diff --git a/components/spktoolbar/SpkToolbar/SpkToolbar.pas b/components/spktoolbar/SpkToolbar/SpkToolbar.pas index c083c1fab..5bdb05195 100644 --- a/components/spktoolbar/SpkToolbar/SpkToolbar.pas +++ b/components/spktoolbar/SpkToolbar/SpkToolbar.pas @@ -535,7 +535,11 @@ begin //inherited AlignWithMargins:=true; if AOwner is TForm then + {$IF LCL_FullVersion >= 1090000} + DesignDPI := TForm(AOwner).DesignTimePPI + {$ELSE} DesignDPI := TForm(AOwner).DesignTimeDPI + {$ENDIF} else DesignDPI := ScreenInfo.PixelsPerInchX;