From 13609346f1b72a29f6b65783ceaea23d6150ffeb Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 25 Mar 2021 19:58:33 +0100 Subject: [PATCH] fix reduction error (#672) Co-authored-by: Julius Krumbiegel --- src/layouting/layouting.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/layouting/layouting.jl b/src/layouting/layouting.jl index 1623e09ca..c85d36a07 100644 --- a/src/layouting/layouting.jl +++ b/src/layouting/layouting.jl @@ -273,7 +273,11 @@ function preprojected_glyph_arrays(strings::AbstractVector{<:String}, positions: error("Unknown space $space, only :data or :screen allowed") end - megapos = reduce(vcat, allpos) + megapos::Vector{Point3f0} = if isempty(allpos) + Point3f0[] + else + reduce(vcat, allpos) + end atlas = get_texture_atlas() uv = Vec4f0[]