Преглед изворни кода

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);