2
0
Эх сурвалжийг харах

#586 do not create grid without virtual screen

Juliette ELSASS 1 жил өмнө
parent
commit
7287ea358d

+ 1 - 0
lazpaint/tools/utooldeformationgrid.pas

@@ -1225,6 +1225,7 @@ var curPt,rightPt,downPt: TPointF;
     xb,yb: Integer;
 begin
   result := EmptyRect;
+  if (VirtualScreen = nil) and (deformationGrid = nil) then exit;
   if not ToolDeformationGridNeeded then exit;
   for xb := 0 to deformationGridNbX-1 do
     for yb := 0 to deformationGridNbY-1 do