Bug #3993
closed[wt-3.3.4] Crash on WTable::insertColumn()
0%
Description
Hey,
I cannot insert a column in a WTable. See the test case in attachment. The application crashes.
Regards,
Stoycho
Files
Updated by Стойчо Стефанов Stoycho Stefanov over 9 years ago
Of course, there are other ways to achieve the inserting, but the method has to work as well:
int insertIndex(0);
table->elementAt(table->rowCount()-1,table->columnCount());
table->moveColumn(table->columnCount()-1,insertIndex);
Updated by Стойчо Стефанов Stoycho Stefanov over 9 years ago
- File WTable_moveColumn.cpp WTable_moveColumn.cpp added
I get segmentation fault on moving column that contains the "header" cell (i.e., a cell spanned over all columns) too.
The lines that are commented out fix the problem.
Perhaps moveColumn should shrink spanned cells before moving?
Regards,
Stoycho
Updated by Wim Dumon over 9 years ago
- Status changed from New to Resolved
Hello,
I fixed the bug related to insertColumns(). Without this fix insertColumns() is broken in 3.3.4 unless you add columns at the end.
For the moveColumns() case, since WTable will usually add columns/rows in order to resolve issues related to the size of the table, I also made moveColumn() add extra columns if a span requires it. And I also did the same for moveRows().
Wim.
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed