diff --git a/src/lib/tvgShape.cpp b/src/lib/tvgShape.cpp index 0a0a622a..7b43cdb0 100644 --- a/src/lib/tvgShape.cpp +++ b/src/lib/tvgShape.cpp @@ -170,7 +170,7 @@ Result Shape::appendArc(float cx, float cy, float radius, float startAngle, floa if (pie) { pImpl->path->moveTo(cx, cy); pImpl->path->lineTo(start.x + cx, start.y + cy); - }else { + } else { pImpl->path->moveTo(start.x + cx, start.y + cy); } @@ -204,10 +204,7 @@ Result Shape::appendArc(float cx, float cy, float radius, float startAngle, floa startAngle = endAngle; } - if (pie) { - pImpl->path->moveTo(cx, cy); - pImpl->path->close(); - } + if (pie) pImpl->path->close(); pImpl->flag |= RenderUpdateFlag::Path; @@ -388,4 +385,4 @@ StrokeJoin Shape::strokeJoin() const noexcept if (!pImpl->stroke) return StrokeJoin::Bevel; return pImpl->stroke->join; -} \ No newline at end of file +}