MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.38k stars 302 forks source link

Empty/empty string rich text crashes Label #3791

Open rongcuid opened 5 months ago

rongcuid commented 5 months ago
using CairoMakie
fig = Figure()
Label(fig, text=rich())
Label(fig, text=rich(""))

Both labels will crash with ERROR: MethodError: reducing over an empty collection is not allowed; consider supplyinginitto the reducer

ffreyer commented 3 weeks ago

Related: #3315