diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-06 10:57:39 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-07-06 10:57:56 +0200 |
commit | 69a74abf26581a897b37fe2ccc6d523f10fe7f5e (patch) | |
tree | fac672e6c4aeb6c4289395fc4fba39d6ee77403e /src/libs/cplusplus/SimpleLexer.cpp | |
parent | 6d8ecb762f2b178086a3009cc8a61d5de19a0230 (diff) | |
download | qt-creator-69a74abf26581a897b37fe2ccc6d523f10fe7f5e.tar.gz |
Fixed completion for doxygen comments.
Diffstat (limited to 'src/libs/cplusplus/SimpleLexer.cpp')
-rw-r--r-- | src/libs/cplusplus/SimpleLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp index e03208f2f7..4db184ca12 100644 --- a/src/libs/cplusplus/SimpleLexer.cpp +++ b/src/libs/cplusplus/SimpleLexer.cpp @@ -161,7 +161,7 @@ int SimpleLexer::tokenBefore(const QList<Token> &tokens, unsigned offset) { for (int index = tokens.size() - 1; index >= 0; --index) { const Token &tk = tokens.at(index); - if (tk.begin() <= offset) + if (tk.begin() < offset) return index; } |