Skip to content

Commit

Permalink
Issue #1198: a) Removed meanwhile obsolete setting of ScalingFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Aug 1, 2023
1 parent 9e28d42 commit c99dd9c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8976,12 +8976,6 @@ procedure TBaseVirtualTree.Change(Node: PVirtualNode);
//----------------------------------------------------------------------------------------------------------------------

procedure TBaseVirtualTree.ChangeScale(M, D: Integer{$if CompilerVersion >= 31}; isDpiChange: Boolean{$ifend});
{$if CompilerVersion < 27}
const
DefaultScalingFlags = [sfLeft, sfTop, sfWidth, sfHeight, sfFont]; // Was introduced with XE6: http://docwiki.embarcadero.com/Libraries/XE6/en/Vcl.Controls.TControl.DefaultScalingFlags
{$ifend}
var
Flags: TScalingFlags;
begin
if (toAutoChangeScale in FOptions.AutoOptions) then
begin
Expand All @@ -8992,11 +8986,6 @@ procedure TBaseVirtualTree.ChangeScale(M, D: Integer{$if CompilerVersion >= 31};
{$if CompilerVersion >= 31}
ScaleForPPi(Self.CurrentPPI);
{$ifend}
// It is important to evaluate the TScalingFlags before calling inherited, becuase they are differetn afterwards!
if csLoading in ComponentState then
Flags := ScalingFlags
else
Flags := DefaultScalingFlags; // Important for #677
TVTHeaderCracker(FHeader).ChangeScale(M, D, {$if CompilerVersion >= 31}isDpiChange{$ELSE} M <> D{$ifend});
SetDefaultNodeHeight(MulDiv(FDefaultNodeHeight, M, D));
Indent := MulDiv(Indent, M, D);
Expand Down

0 comments on commit c99dd9c

Please sign in to comment.