Selaa lähdekoodia

dont createshape if dist is too short

Unknown 6 vuotta sitten
vanhempi
commit
48f59c99e8
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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);