From acfd8cfe1acff6a10660d7ca1f0649290aafe0d1 Mon Sep 17 00:00:00 2001 From: hyrodium Date: Tue, 9 Apr 2024 01:15:19 +0900 Subject: [PATCH] update `BezierPath` constructor --- src/bezierpath.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bezierpath.jl b/src/bezierpath.jl index 762c3310..dde34b9d 100644 --- a/src/bezierpath.jl +++ b/src/bezierpath.jl @@ -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)