summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-05-11 08:21:34 +0000
committertavmjong-free <tavmjong@free.fr>2014-05-11 08:21:34 +0000
commitc67d303b14e0f76754bff98cbde85368d19a4644 (patch)
tree05259fee9d42a97a5c317008d255a0e71f6cc0ef /src
parentStyle rewrite: 'text-decoration' requires access to style of ancestor element... (diff)
downloadinkscape-c67d303b14e0f76754bff98cbde85368d19a4644.tar.gz
inkscape-c67d303b14e0f76754bff98cbde85368d19a4644.zip
Add closePath().
(bzr r13349)
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());
}