Răsfoiți Sursa

dont createshape if dist is too short

Unknown 6 ani în urmă
părinte
comite
48f59c99e8
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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);