mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 16:12:57 +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;
|
srcImg: TLazIntfImage = nil;
|
||||||
destCanvas: TLazCanvas = nil;
|
destCanvas: TLazCanvas = nil;
|
||||||
begin
|
begin
|
||||||
|
if (AImage.Width = AWidth) and (AImage.Height = AHeight) then
|
||||||
|
exit;
|
||||||
|
|
||||||
try
|
try
|
||||||
// Create the source LazIntfImage
|
// Create the source LazIntfImage
|
||||||
srcImg := AImage.CreateIntfImage;
|
srcImg := AImage.CreateIntfImage;
|
||||||
|
Loading…
Reference in New Issue
Block a user