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

QTextDocument::undo() will remove more than one edit block inserted by QTextCursor.

    XMLWordPrintable

Details

    Description

      If you do the following

      cursor.beginEditBlock();
      cursor.inserText("A");
      cursor.endEditBlock();
      cursor.beginEditBlock();
      cursor.inserText("B");
      cursor.endEditBlock();
      document->undo();

      then the undo() call will remove both the A and the B, but the docs for QTextCursor::endEditBlock() indicates that it shouldn't.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes