summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
Diffstat (limited to 'src/object')
-rw-r--r--src/object/sp-ellipse.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/object/sp-ellipse.cpp b/src/object/sp-ellipse.cpp
index 0623fbf0c..23736b786 100644
--- a/src/object/sp-ellipse.cpp
+++ b/src/object/sp-ellipse.cpp
@@ -461,14 +461,12 @@ void SPGenericEllipse::set_shape()
if (this->_isSlice() && this->arc_type == SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE) {
pb.lineTo(Geom::Point(0, 0));
}
- // If convert to paths ellipses become unclosed so comment this and call "closePath"
- // Remove later
- // if ( !(this->arc_type == SP_GENERIC_ELLIPSE_ARC_TYPE_ARC) ) {
- // pb.closePath();
- // } else {
- // pb.flush();
- // }
- pb.closePath();
+
+ if ( !(this->arc_type == SP_GENERIC_ELLIPSE_ARC_TYPE_ARC) ) {
+ pb.closePath();
+ } else {
+ pb.flush();
+ }
c = new SPCurve(pb.peek());
// gchar *str = sp_svg_write_path(curve->get_pathvector());