← Alle PRs
#1303

MakeLabelCanvas: font floor + ellipsis instead of newFont(0) crash

sauber CI rot GitHub ↗

fix/labelcanvas-font-floor · PurpleFuchs · 1 Dateien · +20 −4 · 2026-10-28

Zusammenfassung

Shrinking loop could hit fontsize 0 -> newFont(0) crash. Floor at 8px; text still too wide is truncated with '...' so the drawn label always fits.

Card: 79cdf0

Geänderte Dateien (1)
Source/GuiElements/Canvas/MakeLabelCanvas.luageändert+20 −4