Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11282

ASSERT in QTextTable when inserting a column before a spanned cell in the last column.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.6.2, 4.7.0
    • GUI: Text handling
    • 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();
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ntg Pierre Rossi
            ntg Pierre Rossi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes