Utility/SimpleTextDrawer: Fix reserve
This commit is contained in:
parent
5504dd59fb
commit
6bc99a6d5e
|
|
@ -452,7 +452,7 @@ namespace Nz
|
||||||
|
|
||||||
const Font::SizeInfo& sizeInfo = m_font->GetSizeInfo(m_characterSize);
|
const Font::SizeInfo& sizeInfo = m_font->GetSizeInfo(m_characterSize);
|
||||||
|
|
||||||
m_glyphs.reserve(m_glyphs.size() + characters.size() * (m_outlineThickness > 0.f) ? 2 : 1);
|
m_glyphs.reserve(m_glyphs.size() + characters.size() * ((m_outlineThickness > 0.f) ? 2 : 1));
|
||||||
for (char32_t character : characters)
|
for (char32_t character : characters)
|
||||||
{
|
{
|
||||||
if (m_previousCharacter != 0)
|
if (m_previousCharacter != 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue