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

fix crash if no string to draw

parent 07fbc936
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ class drawContextFltkStringTexture::queueString { ...@@ -44,6 +44,8 @@ class drawContextFltkStringTexture::queueString {
} }
void flush() void flush()
{ {
if(_elements.empty()) return;
//1000 should be _totalWidth but it does not work //1000 should be _totalWidth but it does not work
int w = 1000, h = _maxHeight; int w = 1000, h = _maxHeight;
Fl_Offscreen offscreen = fl_create_offscreen(w, h); Fl_Offscreen offscreen = fl_create_offscreen(w, h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment