Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.6.2, 4.7.0
-
None
-
d3a6f124dde7732311ad9312ebf41997712fc6bb
Description
It seems that mergeCells can leave the text table in a bad state, here's a simple test that demonstrates it:
#include <QtGui> int main( int argc, char** argv ){ QApplication app( argc, argv ); QTextEdit *edit = new QTextEdit; QTextTable *table = edit->textCursor().insertTable(2,3); if (QApplication::arguments().size() > 1) { //do not crash table->insertColumns(1,1); table->mergeCells(0,2,2,2); } else { table->mergeCells(0,1,2,2); table->insertColumns(1,1); } edit->show(); return app.exec(); }