Bug #3266
opencan not set new layout
0%
Description
WContainerWidget c, set hbox layout, add child widget and child layout.
Then remove child widget and child layout from hbox.
Create vbox layout, add children, call c->setLayout(vbox).
In debug, this calls assertation fail:
Wt::WLayout::setParentWidget, assert(!impl_);
In release, memory leak in
Wt::WLayout::setParentWidget, Wt::WContainerWidget::createLayoutItemImpl.
Updated by Koen Deforche almost 10 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
Michael,
can you reproduce this in a test case?
koen
Updated by Michael Vilsker almost 10 years ago
Hey,
I probably did not understand the scenario.
Is it:
WContainerWidget *c = new WContainerWidget(root());
WHBoxLayout *h = new WHBoxLayout();
WVBoxLayout *v = new WVBoxLayout();
WLineEdit *childW = new WLineEdit();
WHBoxLayout *childLayout = new WHBoxLayout();
c->setLayout(h);
h->addWidget(childW);
h->addLayout(childLayout);
h->removeWidget(childW);
h->removeChild(childLayout);
c->setLayout(v);
Updated by Michael Vilsker almost 10 years ago
- Status changed from InProgress to Feedback