diff --git a/components/lazmapviewer/source/mvde_intfgraphics.pas b/components/lazmapviewer/source/mvde_intfgraphics.pas index ff5a5b6c1..84b968bf3 100644 --- a/components/lazmapviewer/source/mvde_intfgraphics.pas +++ b/components/lazmapviewer/source/mvde_intfgraphics.pas @@ -296,7 +296,7 @@ procedure TMvIntfGraphicsDrawingEngine.PaintToCanvas(ACanvas: TCanvas); var bmp: TBitmap; begin - if FCanvas <> nil then begin + if ACanvas <> nil then begin bmp := TBitmap.Create; try bmp.PixelFormat := pf32Bit;