Skip to content

Commit 258975c

Browse files
committed
@joachimmarder Issue #1198: a) Removed meanwhile obsolete setting of ScalingFlags
1 parent c749c8e commit 258975c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Source/VirtualTrees.pas

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18567,22 +18567,11 @@ procedure TBaseVirtualTree.Change(Node: PVirtualNode);
1856718567
//----------------------------------------------------------------------------------------------------------------------
1856818568

1856918569
procedure TBaseVirtualTree.ChangeScale(M, D: Integer{$if CompilerVersion >= 31}; isDpiChange: Boolean{$ifend});
18570-
{$if CompilerVersion < 27}
18571-
const
18572-
DefaultScalingFlags = [sfLeft, sfTop, sfWidth, sfHeight, sfFont]; // Was introduced with XE6: http://docwiki.embarcadero.com/Libraries/XE6/en/Vcl.Controls.TControl.DefaultScalingFlags
18573-
{$ifend}
18574-
var
18575-
Flags: TScalingFlags;
1857618570
begin
1857718571
if (toAutoChangeScale in FOptions.AutoOptions) then
1857818572
begin
1857918573
if (M <> D) then
1858018574
begin
18581-
// It is important to evaluate the TScalingFlags before calling inherited, becuase they are differetn afterwards!
18582-
if csLoading in ComponentState then
18583-
Flags := ScalingFlags
18584-
else
18585-
Flags := DefaultScalingFlags; // Important for #677
1858618575
FHeader.ChangeScale(M, D, {$if CompilerVersion >= 31}isDpiChange{$ELSE} M <> D{$ifend});
1858718576
SetDefaultNodeHeight(MulDiv(FDefaultNodeHeight, M, D));
1858818577
Indent := MulDiv(Indent, M, D);

0 commit comments

Comments
 (0)