Browse Source

avoid nil error

Johann 6 years ago
parent
commit
339f7e6e12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lazpaint/utoolbasic.pas

+ 1 - 1
lazpaint/utoolbasic.pas

@@ -509,7 +509,7 @@ begin
     UpdateCursor(cur);
     result := EmptyRect;
   end;
-  if SlowShape then
+  if SlowShape and Assigned(FShape) then
     result := UpdateShape(GetToolDrawingLayer);
 end;