瀏覽代碼

dont createshape if dist is too short

Unknown 6 年之前
父節點
當前提交
48f59c99e8
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);