From 9e55ed88eed7427f04365b7391fff4870dfe07a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 11 Jun 2026 22:03:38 +0200 Subject: [PATCH] Text: I'm not resetting everything on AbstractFont::close(). Although this doesn't really matter in practice, as the (now correctly parenthesized) comment says. --- src/Magnum/Text/AbstractFont.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Text/AbstractFont.cpp b/src/Magnum/Text/AbstractFont.cpp index 34629c2a3..2fe2c780f 100644 --- a/src/Magnum/Text/AbstractFont.cpp +++ b/src/Magnum/Text/AbstractFont.cpp @@ -411,12 +411,13 @@ void AbstractFont::close() { doClose(); CORRADE_INTERNAL_ASSERT(!isOpened()); - /* Clear the saved values to avoid accidental use of stale (state even + /* Clear the saved values to avoid accidental use of stale state (even though their public access is guarded with isOpened()) */ _size = {}; _lineHeight = {}; _descent = {}; _lineHeight = {}; + _glyphCount = {}; } Float AbstractFont::size() const {