Skip to content
Snippets Groups Projects
Commit c90815e2 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Editor: Do not highlight invalid Uses


Invalid Uses (line == 0) are generated by e.g. a Q_D statement.

This kills
 1. the selection artifact in line 0, column 0 and
 2. the warning "QTextCursor::setPosition: Position '-1' out of range"

for the following example code and cursor position:

    void f()
    {
        Q_D(x)
        d->hello(); // put the cursor on the 'd'!
    }

Change-Id: I6968cbc261f05e08f71ff125437c8c9e863b475b
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 30da7ad3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment