diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 422f485b2..a42239c34 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -142,7 +142,11 @@ void MagnumFont::openInternal(Utility::Configuration&& conf, Trade::ImageData2D& const Utility::ConfigurationGroup* const c = *it; const UnsignedInt glyphId = c->value("glyph"); CORRADE_INTERNAL_ASSERT(glyphId < _opened->glyphAdvance.size()); + #ifndef CORRADE_GCC46_COMPATIBILITY _opened->glyphId.emplace(c->value("unicode"), glyphId); + #else + _opened->glyphId.insert({c->value("unicode"), glyphId}); + #endif _opened->glyphAdvance[glyphId] = c->value("advance"); } }