about summary refs log tree commit diff stats
path: root/file.lua
diff options
context:
space:
mode:
Diffstat (limited to 'file.lua')
-rw-r--r--file.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.lua b/file.lua
index ced2a04..0ce1b8e 100644
--- a/file.lua
+++ b/file.lua
@@ -66,7 +66,7 @@ function load_drawing(infile_next_line)
     elseif shape.mode == 'circle' or shape.mode == 'arc' then
       local name = shape.center.name
       shape.center = Drawing.insert_point(drawing.points, shape.center.x,shape.center.y)
-      drawing.point[shape.center].name = name
+      drawing.points[shape.center].name = name
     else
       print(shape.mode)
       assert(false)
@@ -155,7 +155,7 @@ function load_drawing_from_array(iter, a, i)
     elseif shape.mode == 'circle' or shape.mode == 'arc' then
       local name = shape.center.name
       shape.center = Drawing.insert_point(drawing.points, shape.center.x,shape.center.y)
-      drawing.point[shape.center].name = name
+      drawing.points[shape.center].name = name
     else
       print(shape.mode)
       assert(false)