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

QTextLayout crashes when drawing a line contains only spaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 RC1
    • 5.2.1
    • GUI: Text handling
    • None
    • Windows 7, VS 2010
    • 7eae50a52d63b7f0434fdb75fc09b0901a0140cc

    Description

      QTextLayout crashes when drawing a line contains only spaces with Qt::AlignJustify.

      To solve this problem, I've corrected QTextEngine as following.

      QTextEngine.cpp / line 2043 (QTextEngine::justify())
      original : if (!line_length)
      corrected : if (line_length <= 0)

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            qrgscor RiJong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes