mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
LCL/GraphUtil: Exit ScaleImg immediately when no size change of the image is needed.
(cherry picked from commit 77121d9b42
)
This commit is contained in:
parent
f39025ab18
commit
a93934025f
@ -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