Project

General

Profile

Actions

Bug #3266

open

can not set new layout

Added by Anonymous almost 10 years ago. Updated almost 10 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.

Actions #1

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

Actions #2

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);

Actions #3

Updated by Michael Vilsker almost 10 years ago

  • Status changed from InProgress to Feedback
Actions

Also available in: Atom PDF