summaryrefslogtreecommitdiffstats
path: root/src/object/sp-ellipse.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2018-10-24 18:02:00 +0000
committerJabiertxof <jabier.arraiza@marker.es>2018-10-25 07:48:24 +0000
commita61d70d8ef1325f238d197b9e09858fc5f5e7684 (patch)
tree3cae6df433b5ff39ecacd786b4502eeddce09646 /src/object/sp-ellipse.cpp
parentFixing coding style (diff)
downloadinkscape-a61d70d8ef1325f238d197b9e09858fc5f5e7684.tar.gz
inkscape-a61d70d8ef1325f238d197b9e09858fc5f5e7684.zip
Add fixes in review.
Diffstat (limited to 'src/object/sp-ellipse.cpp')
-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());