diff options
| author | Denis Declara <declara91@gmail.com> | 2012-04-26 11:14:34 +0000 |
|---|---|---|
| committer | Denis Declara <declara91@gmail.com> | 2012-04-26 11:14:34 +0000 |
| commit | 95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4 (patch) | |
| tree | 506de5a8437cb39917a66d74b68d78692d10a993 /src/2geom | |
| parent | Added first support for elliptical arrangements (diff) | |
| parent | powerstroke: cautious fix. (diff) | |
| download | inkscape-95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4.tar.gz inkscape-95a8ad7bfec98f7cede15c4e8856ce547aaf4aa4.zip | |
Trunk merge
(bzr r11073.1.20)
Diffstat (limited to 'src/2geom')
| -rw-r--r-- | src/2geom/svg-path.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/2geom/svg-path.h b/src/2geom/svg-path.h index 591eb3aa2..c22f65d11 100644 --- a/src/2geom/svg-path.h +++ b/src/2geom/svg-path.h @@ -48,6 +48,10 @@ public: virtual void quadTo(Point c, Point p) = 0; virtual void arcTo(double rx, double ry, double angle, bool large_arc, bool sweep, Point p) = 0; + + /** Undo the last lineTo, curveTo, etc. call. */ + virtual void backspace() = 0; + virtual void closePath() = 0; virtual void finish() = 0; virtual ~SVGPathSink() {} @@ -120,6 +124,13 @@ public: large_arc, sweep, p); } + void backspace() + { + if (_in_path && _path.size() > 0) { + _path.erase_last(); + } + } + void append(Path const &other, Path::Stitching stitching = Path::NO_STITCHING) { if (!_in_path) { |
