Skip to content

Commit

Permalink
Issue #1198: g) Remove unnecessary call to AutoScale() in ChangeScale…
Browse files Browse the repository at this point in the history
…() if M=D
  • Loading branch information
joachimmarder committed Aug 1, 2023
1 parent 061beff commit cdb0413
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9001,9 +9001,7 @@ procedure TBaseVirtualTree.ChangeScale(M, D: Integer{$if CompilerVersion >= 31};
end;// if M<>D
inherited ChangeScale(M, D{$if CompilerVersion >= 31}, isDpiChange{$ifend});
if (M <> D) then
PrepareBitmaps(True, False) // See issue #991
else
AutoScale(); // It is important to do this call after calling inherited, so that the Font has been updated.
PrepareBitmaps(True, False); // See issue #991
end;

//----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit cdb0413

Please sign in to comment.