Skip to content
Snippets Groups Projects
Commit 10c09cb3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't draw empty strings

parent 6f3d3592
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
void drawContext::drawString(const std::string &s, const std::string &font_name,
int font_enum, int font_size, int align)
{
if(s.empty()) return;
if(CTX::instance()->printing && !CTX::instance()->print.text) return;
GLboolean valid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment