summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-05-11 08:20:24 +0000
committertavmjong-free <tavmjong@free.fr>2014-05-11 08:20:24 +0000
commit6d27c0696e7c6babb2f66c81c0a1f13d1036a569 (patch)
treeff604de7b5fb1bceb984f0035b3723c5b323c12a /src
parentTentative fix for LPEs and undo (diff)
downloadinkscape-6d27c0696e7c6babb2f66c81c0a1f13d1036a569.tar.gz
inkscape-6d27c0696e7c6babb2f66c81c0a1f13d1036a569.zip
Add closePath().
(bzr r13341.1.6)
Diffstat (limited to 'src')
-rw-r--r--src/display/drawing-context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/display/drawing-context.h b/src/display/drawing-context.h
index d990bcb73..0d82087c3 100644
--- a/src/display/drawing-context.h
+++ b/src/display/drawing-context.h
@@ -61,6 +61,7 @@ public:
cairo_curve_to(_ct, p1[Geom::X], p1[Geom::Y], p2[Geom::X], p2[Geom::Y], p3[Geom::X], p3[Geom::Y]);
}
void arc(Geom::Point const &center, double radius, Geom::AngleInterval const &angle);
+ void closePath() { cairo_close_path(_ct); }
void rectangle(Geom::Rect const &r) {
cairo_rectangle(_ct, r.left(), r.top(), r.width(), r.height());
}