summaryrefslogtreecommitdiff
path: root/tex/context/base/m-chart.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/m-chart.lua')
-rw-r--r--tex/context/base/m-chart.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/tex/context/base/m-chart.lua b/tex/context/base/m-chart.lua
index acb41399e..1545e66c5 100644
--- a/tex/context/base/m-chart.lua
+++ b/tex/context/base/m-chart.lua
@@ -134,6 +134,9 @@ function commands.flow_start_cell(settings)
exits = { },
connections = { },
settings = settings,
+ x = 1,
+ y = 1,
+ name = "",
}
end
@@ -285,10 +288,10 @@ function commands.flow_set_location(str) -- handle include differently
else
y = tonumber(y)
end
- temp.x = x
- temp.y = y
- last_x = x
- last_y = y
+ temp.x = x or 1
+ temp.y = y or 1
+ last_x = x or last_x
+ last_y = y or last_y
end
function commands.flow_set_connection(location,displacement,name)