diff options
Diffstat (limited to 'undo.lua')
-rw-r--r-- | undo.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/undo.lua b/undo.lua index a1ac852..d699211 100644 --- a/undo.lua +++ b/undo.lua @@ -67,8 +67,8 @@ function snapshot(State, s,e) --? print('copying', line.points, 'with', #line.points, 'points into', points) local shapes=deepcopy(line.shapes) --? print('copying', line.shapes, 'with', #line.shapes, 'shapes into', shapes) - table.insert(event.lines, {mode='drawing', y=line.y, h=line.h, points=points, shapes=shapes, pending={}}) ---? table.insert(event.lines, {mode='drawing', y=line.y, h=line.h, points=deepcopy(line.points), shapes=deepcopy(line.shapes), pending={}}) + table.insert(event.lines, {mode='drawing', h=line.h, points=points, shapes=shapes, pending={}}) +--? table.insert(event.lines, {mode='drawing', h=line.h, points=deepcopy(line.points), shapes=deepcopy(line.shapes), pending={}}) else print(line.mode) assert(false) |