mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-01 15:27:30 +01: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
15ca7b97cb
commit
2fee3db2b4
@ -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