summaryrefslogtreecommitdiffstats
path: root/src/2geom
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom')
-rw-r--r--src/2geom/path-sink.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/2geom/path-sink.h b/src/2geom/path-sink.h
index 17ede18a4..3bdb00783 100644
--- a/src/2geom/path-sink.h
+++ b/src/2geom/path-sink.h
@@ -179,8 +179,10 @@ public:
}
void closePath() {
- _path.close();
- flush();
+ if (_in_path) {
+ _path.close();
+ flush();
+ }
}
void flush() {