Skip to content

Commit

Permalink
Merge pull request #309 from hyrodium/fix/BezierPath_constructor
Browse files Browse the repository at this point in the history
Update `BezierPath` constructor
  • Loading branch information
cormullion authored Apr 15, 2024
2 parents fa064b8 + acfd8cf commit 4641522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bezierpath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mutable struct BezierPath <: AbstractArray{BezierPathSegment,1}
end

BezierPath(bps::BezierPathSegment) = BezierPath([bps])
BezierPath() = BezierPath([])
BezierPath() = BezierPath(BezierPathSegment[])

Base.size(bp::BezierPath) = size(bp.segments)
Base.length(bp::BezierPath) = length(bp.segments)
Expand Down

0 comments on commit 4641522

Please sign in to comment.