diff --git a/src/MagnumPlugins/MagnumFont/MagnumFont.cpp b/src/MagnumPlugins/MagnumFont/MagnumFont.cpp index 9fe6f9681..cc7926ec9 100644 --- a/src/MagnumPlugins/MagnumFont/MagnumFont.cpp +++ b/src/MagnumPlugins/MagnumFont/MagnumFont.cpp @@ -26,7 +26,7 @@ #include "MagnumFont.h" #include -#include +#include #include #include #include @@ -119,9 +119,9 @@ auto MagnumFont::doOpenData(const Containers::ArrayView data, const /* Glyph advances */ const std::vector glyphs = _opened->conf.groups("glyph"); - arrayReserve(_opened->glyphAdvance, glyphs.size()); - for(const Utility::ConfigurationGroup* const g: glyphs) - arrayAppend(_opened->glyphAdvance, g->value("advance")); + _opened->glyphAdvance = Containers::Array{NoInit, glyphs.size()}; + for(std::size_t i = 0; i != glyphs.size(); ++i) + _opened->glyphAdvance[i] = glyphs[i]->value("advance"); /* Fill character->glyph map */ const std::vector chars = _opened->conf.groups("char");