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

QTextLayout crashes when drawing a line contains only spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3.0 RC1
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Environment:
      Windows 7, VS 2010
    • Commits:
      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

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            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