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

QTextEngine::lineNumberForTextPosition returns invalid Line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.4, 5.0.0
    • GUI: Text handling

    Description

      Steps to reproduce see: QTCREATORBUG-8441

      It seems that the leading whitespaces are ignored in the text.
      In this example the text is:

      "                            } 6, 7, 8};"
      

      We are looking for position 29, But the QScriptLine inside lines says the line length is 11.

      See the attached File for the Locals and stack.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              davschul David Schulz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes