Bug #6037
open[v3] WTable::deteteRow() doesn't delete contents, just the row.
0%
Description
How to trigger the bug.
0. I create a table by using WTable::elementAt( i,j )->addWidget( aWidget ) (old content)
- I delete the rows of a table by cycling over WTable::deteteRow()
- I re-create the table by using again WTable::elementAt( i,j )->addWidget( aWidget ) (new content)
Actual result.
Each table cell has the new content appended to the old one.
Expected result.
Old content to be erased.
Hints.
I suspect that the rows get deleted while the single cells are kept.
When I add the content (there's no "replace widget") this is added to the old one, thus appearing as "appended".
Updated by Vincenzo Romano over 7 years ago
I worked the bug around by adding a WTable::elementAt( i,j )->clear()
before WTable::elementAt( i,j )->addWidget()
.
The documentation says that WTable::deleteRow()
Deletes a row and all its contents.
Simply calling WTable::removeCell()
for all existing table cells is ineffective!
I suspect the bug could be there too.
Updated by Roel Standaert about 7 years ago
- Status changed from New to Feedback
Do you have a test case that reproduces your issue? I'm not sure if I fully understand your problem. It is working as expected for me.
Updated by Vincenzo Romano about 7 years ago
It's working for me too now.
I think it's been an oversight of mine. Sorry.
Please, close this issue.