Commit 426423ae authored by Nathan Lee's avatar Nathan Lee Committed by Marc Jeanmougin

Close circle path by changing default arc type

#620
(cherry-picked from 316d4c9b)
parent c41d9961
Pipeline #183886501 passed with stages
in 93 minutes and 32 seconds
......@@ -44,7 +44,7 @@ SPGenericEllipse::SPGenericEllipse()
, start(0)
, end(SP_2PI)
, type(SP_GENERIC_ELLIPSE_UNDEFINED)
, arc_type(SP_GENERIC_ELLIPSE_ARC_TYPE_ARC)
, arc_type(SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE)
{
}
......@@ -459,7 +459,7 @@ void SPGenericEllipse::set_shape()
pb.lineTo(Geom::Point(0, 0));
}
if ( !(this->arc_type == SP_GENERIC_ELLIPSE_ARC_TYPE_ARC) ) {
if ((this->arc_type != SP_GENERIC_ELLIPSE_ARC_TYPE_ARC) || (this->type != SP_GENERIC_ELLIPSE_ARC)) {
pb.closePath();
} else {
pb.flush();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment