Actions
Bug #13063
closedWidget created in signal handler: cannot adjust information after creation without segfault
Start date:
09/25/2024
Due date:
% Done:
100%
Estimated time:
Description
I want to add Text to a container, with the HTML Tag <pre>
.
I used the following snippet inside a signal handler
auto pre = this->list->addNew<Wt::WText>("Add Sample Text");
pre->setHtmlTagName("pre"); // comment out to make code work
if I do not set HTML Tag name, this works just as expected.
But there is a Segfault in WStringStream
if the tag is used.
Then I tried to use a unique_ptr directly, but the same thing happened
auto pre = std::make_unique<Wt::WText>("Some Text to Show Unique Works");
pre->setHtmlTagName("pre"); // same problem, same solution, comment out
this->list->addWidget(std::move(pre));
Updated by Matthias Van Ceulebroeck 5 months ago
- Target version set to 4.11.2
I am going to guess this is an edge case when the DomElement
is being rendered.
This will be investigated further soon.
Updated by Romain Mardulyn 3 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 3 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Updated by Matthias Van Ceulebroeck about 2 months ago
- Assignee set to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck about 2 months ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck about 1 month ago
- Status changed from Implemented @Emweb to Implemented @Test
Updated by Matthias Van Ceulebroeck about 1 month ago
- Status changed from Implemented @Test to Closed
Actions