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

Bug in QTextBlock::iterator::operator--(int)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • None
    • All

    Description

      in QTextBlock::iterator::operator-(int)

      we define

       int formatIndex = p->fragmentMap().fragment( n )->format;

      and then NEVER do enter the while loop after:

        while (n != b && p->fragmentMap().fragment( n )->format != formatIndex) {

      Correct solution is to use equal operator == instead of not equal operator != in while condition.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            alex_milovski Alex Milovski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes