Browse Source

dont createshape if dist is too short

Unknown 6 years ago
parent
commit
48f59c99e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vectoredit/umain.pas

+ 2 - 1
vectoredit/umain.pas

@@ -650,7 +650,8 @@ begin
   UpdateViewCursor(cur);
 
   ptF := AffineMatrixInverse(vectorTransform)*imgPtF;
-  if justDown and not Assigned(newShape) and IsCreateShapeTool(currentTool) then
+  if justDown and not Assigned(newShape) and IsCreateShapeTool(currentTool) and
+    (VectLen(ptF-newStartPoint) >= EditorPointSize) then
   begin
     vectorOriginal.DeselectShape;
     newShape := CreateShape(newStartPoint,ptF);