mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 15:37:51 +02:00
LCL/GraphUtil: Exit ScaleImg immediately when no size change of the image is needed.
This commit is contained in:
parent
aef3e62e80
commit
77121d9b42
@ -371,6 +371,9 @@ var
|
||||
srcImg: TLazIntfImage = nil;
|
||||
destCanvas: TLazCanvas = nil;
|
||||
begin
|
||||
if (AImage.Width = AWidth) and (AImage.Height = AHeight) then
|
||||
exit;
|
||||
|
||||
try
|
||||
// Create the source LazIntfImage
|
||||
srcImg := AImage.CreateIntfImage;
|
||||
|
Loading…
Reference in New Issue
Block a user