Browse Source

Fix group widgets appearing twice

pull/6/head
falkTX 8 years ago
parent
commit
34d75db7f0
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      dgl/src/NanoVG.cpp
  2. +3
    -0
      dgl/src/WidgetPrivateData.hpp

+ 1
- 0
dgl/src/NanoVG.cpp View File

@@ -932,6 +932,7 @@ NanoWidget::NanoWidget(NanoWidget* groupWidget)
nData(new PrivateData(this))
{
pData->needsScaling = true;
pData->skipDisplay = true;
groupWidget->nData->subWidgets.push_back(this);
}



+ 3
- 0
dgl/src/WidgetPrivateData.hpp View File

@@ -51,7 +51,10 @@ struct Widget::PrivateData {
visible(true)
{
if (addToSubWidgets && groupWidget != nullptr)
{
skipDisplay = true;
groupWidget->pData->subWidgets.push_back(self);
}
}

~PrivateData()


Loading…
Cancel
Save