diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index c28ab26766..a661c5f428 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -2684,6 +2684,9 @@ void OPENGL_GAL::DrawGlyph( const KIFONT::GLYPH& aGlyph, int aNth, int aTotal ) void OPENGL_GAL::DrawGlyphs( const std::vector>& aGlyphs ) { + if( aGlyphs.empty() ) + return; + bool allGlyphsAreStroke = true; bool allGlyphsAreOutline = true;