Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
14eb3f6f
Commit
14eb3f6f
authored
Apr 07, 2009
by
Thorbjørn Lindeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed jumping to macro definitions
parent
6d0f973f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+2
-2
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
14eb3f6f
...
...
@@ -632,10 +632,10 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
const
int
nameStart
=
tk
.
position
();
const
int
nameLength
=
tk
.
length
();
const
int
endOfName
=
nameStart
+
nameLength
;
const
int
endOfName
=
block
.
position
()
+
nameStart
+
nameLength
;
const
QString
name
=
block
.
text
().
mid
(
nameStart
,
nameLength
);
tc
.
setPosition
(
block
.
position
()
+
endOfName
);
tc
.
setPosition
(
endOfName
);
// Evaluate the type of the expression under the cursor
ExpressionUnderCursor
expressionUnderCursor
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment