Fix asserting when drawing empty line of text.

This commit is contained in:
Jeff Young 2022-09-25 22:20:51 +01:00
parent 16d5c43c14
commit 76a7a2b4bc
1 changed files with 3 additions and 0 deletions

View File

@ -2684,6 +2684,9 @@ void OPENGL_GAL::DrawGlyph( const KIFONT::GLYPH& aGlyph, int aNth, int aTotal )
void OPENGL_GAL::DrawGlyphs( const std::vector<std::unique_ptr<KIFONT::GLYPH>>& aGlyphs ) void OPENGL_GAL::DrawGlyphs( const std::vector<std::unique_ptr<KIFONT::GLYPH>>& aGlyphs )
{ {
if( aGlyphs.empty() )
return;
bool allGlyphsAreStroke = true; bool allGlyphsAreStroke = true;
bool allGlyphsAreOutline = true; bool allGlyphsAreOutline = true;