Project

General

Profile

Bug #3266

can not set new layout

Added by Anonymous over 8 years ago. Updated over 8 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
-
Start date:
06/05/2014
Due date:
% Done:

0%

Estimated time:

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.

#1

Updated by Koen Deforche over 8 years ago

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker

Michael,

can you reproduce this in a test case?

koen

#2

Updated by Michael Vilsker over 8 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);

#3

Updated by Michael Vilsker over 8 years ago

  • Status changed from InProgress to Feedback

Also available in: Atom PDF