Browse Source

Don't try to render widgets wth invalid size

pull/61/head
falkTX 6 years ago
parent
commit
5f3b6e57d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dgl/src/WidgetPrivateData.hpp

+ 1
- 1
dgl/src/WidgetPrivateData.hpp View File

@@ -65,7 +65,7 @@ struct Widget::PrivateData {


void display(const uint width, const uint height) void display(const uint width, const uint height)
{ {
if (skipDisplay || ! visible)
if (skipDisplay || size.isInvalid() || ! visible)
return; return;


bool needsDisableScissor = false; bool needsDisableScissor = false;


Loading…
Cancel
Save