Skip to content

Commit

Permalink
update BezierPath constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Apr 8, 2024
1 parent 6c271e9 commit acfd8cf
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 acfd8cf

Please sign in to comment.