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

QTextEngine::lineNumberForTextPosition returns invalid Line

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes