From 9978a205d8681425ac3c7f1def0a5d06fc7bb718 Mon Sep 17 00:00:00 2001 From: wp_xyz Date: Sun, 4 May 2025 22:16:04 +0200 Subject: [PATCH] LCL/GraphUtil: Initialize interpolation as nil (see 412af2a70b4db, issue #41614) (cherry picked from commit f1f4ed909cdc5ae575064f8ad4aea7bb82b21663) --- lcl/graphutil.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/graphutil.pp b/lcl/graphutil.pp index bba5d83545..0adac9e4ee 100644 --- a/lcl/graphutil.pp +++ b/lcl/graphutil.pp @@ -369,7 +369,7 @@ end; procedure ScaleImg(AImage: TCustomBitmap; AWidth, AHeight: Integer); var srcImg, destImg: TLazIntfImage; - destCanvas: TLazCanvas; + destCanvas: TLazCanvas = nil; begin if (AImage.Width = AWidth) and (AImage.Height = AHeight) then exit;