Browse Source

Text: I'm not resetting everything on AbstractFont::close().

Although this doesn't really matter in practice, as the (now correctly
parenthesized) comment says.
pull/482/merge
Vladimír Vondruš 1 week ago
parent
commit
9e55ed88ee
  1. 3
      src/Magnum/Text/AbstractFont.cpp

3
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 {

Loading…
Cancel
Save