Project

General

Profile

Bug #7210 » issue_7210.patch

Roel Standaert, 09/06/2019 12:38 PM

View differences:

src/Wt/WWidgetItem.C
pc->widgetAdded(widget_.get());
bool flexLayout = dynamic_cast<FlexLayoutImpl *>
(parentLayout_->impl()) != 0;
(parentLayout_->impl()) != nullptr;
if (flexLayout)
impl_ = cpp14::make_unique<FlexItemImpl>(this);
......
} else {
WContainerWidget *pc = dynamic_cast<WContainerWidget *>(widget_->parent());
if (pc)
pc->widgetRemoved(widget_.get(), true);
if (pc) {
bool flexLayout = dynamic_cast<FlexItemImpl *>(impl_.get()) != nullptr;
pc->widgetRemoved(widget_.get(), flexLayout);
}
impl_.reset();
}
(2-2/2)