gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-draw.cpp')
-rw-r--r--agg-plot/lua-draw.cpp 5
1 files changed, 4 insertions, 1 deletions
diff --git a/agg-plot/lua-draw.cpp b/agg-plot/lua-draw.cpp
index b9a3a13e..4148c3c8 100644
--- a/agg-plot/lua-draw.cpp
+++ b/agg-plot/lua-draw.cpp
@@ -147,7 +147,10 @@ path_cmd (draw::path *p, int _cmd, struct cmd_call_stack *s)
ps.move_to (s->f[0], s->f[1]);
break;
case CMD_LINE_TO:
- ps.line_to (s->f[0], s->f[1]);
+ if (ps.total_vertices() == 0)
+ ps.move_to (s->f[0], s->f[1]);
+ else
+ ps.line_to (s->f[0], s->f[1]);
break;
case CMD_CLOSE:
ps.close_polygon ();
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月26日 08:20:08 +0000

AltStyle によって変換されたページ (->オリジナル) /