[v3] WTable::deteteRow() doesn't delete contents, just the row.
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)
Each table cell has the new content appended to the old one.
Old content to be erased.
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 almost 5 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
Deletes a row and all its contents.
WTable::removeCell() for all existing table cells is ineffective!
I suspect the bug could be there too.