소스 검색

#586 do not create grid without virtual screen

Juliette ELSASS 1 년 전
부모
커밋
7287ea358d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lazpaint/tools/utooldeformationgrid.pas

+ 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