about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--drawing.lua1
-rw-r--r--drawing_tests.lua2
2 files changed, 1 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua
index 646125d..d90ce21 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -429,7 +429,6 @@ function Drawing.keychord_pressed(chord)
     local _,drawing = Drawing.current_drawing()
     drawing.pending.mode = 'arc'
     local mx,my = Drawing.coord(App.mouse_x()-Margin_left), Drawing.coord(App.mouse_y()-drawing.y)
-    local j = Drawing.insert_point(drawing.points, mx,my)
     local center = drawing.points[drawing.pending.center]
     drawing.pending.radius = geom.dist(center.x,center.y, mx,my)
     drawing.pending.start_angle = geom.angle(center.x,center.y, mx,my)
diff --git a/drawing_tests.lua b/drawing_tests.lua
index 761824d..b8e1953 100644
--- a/drawing_tests.lua
+++ b/drawing_tests.lua
@@ -176,7 +176,7 @@ function test_draw_arc()
   App.run_after_mouse_release(Margin_left+35+50, Margin_top+Drawing_padding_top+36+50, 1)  -- 45°
   local drawing = Lines[1]
   check_eq(#drawing.shapes, 1, 'F - test_draw_arc/#shapes')
-  check_eq(#drawing.points, 2, 'F - test_draw_arc/#points')
+  check_eq(#drawing.points, 1, 'F - test_draw_arc/#points')
   check_eq(drawing.shapes[1].mode, 'arc', 'F - test_draw_horizontal_line/shape_mode')
   local arc = drawing.shapes[1]
   check_eq(arc.radius, 30, 'F - test_draw_arc/radius')