summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-20 15:35:01 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-20 15:35:01 +0000
commit415a631440d99d1c3d7f4f236c03bc34a265052b (patch)
tree64a29c012f171b8c81487e83879a7fb6cc8e98cf /Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h
parent42d0780e54824483b089636e0b88fd3546d1f060 (diff)
dvisvgm 1.14.2
git-svn-id: svn://tug.org/texlive/trunk@39435 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h b/Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h
index d065e250c14..b55efdb35dd 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/GraphicsPath.h
@@ -202,10 +202,12 @@ class GraphicsPath
return;
Iterator prev = it++;
while (it != _commands.end()) {
- if (prev->type == Command::MOVETO && it->type == Command::MOVETO)
- _commands.erase(prev);
- else
+ if (prev->type != Command::MOVETO || it->type != Command::MOVETO)
prev = it++;
+ else {
+ prev = _commands.erase(prev); // remove leading MOVETO and advance 'prev' to 'it'
+ ++it;
+ }
}
}