diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-11-26 14:50:34 +0100 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-11-26 15:39:43 +0000 |
commit | f5fb9932a2114d1e7e8e74186923368032d063b9 (patch) | |
tree | f91cf4d72792682d837b19dfb62bde7d7c1cfc11 /src/plugins/cpptools | |
parent | 6a74a24f8c386b214ecd66b18ab238332323a483 (diff) | |
download | qt-creator-f5fb9932a2114d1e7e8e74186923368032d063b9.tar.gz |
Utils: Fix column number for Highlighting result
Follow up for 8469e317c9. This column number compensation
is not required anymore.
Fixes: QTCREATORBUG-21384
Change-Id: I94da48533520471170200c592129781e5b4b614c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r-- | src/plugins/cpptools/builtineditordocumentprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/builtineditordocumentprocessor.cpp b/src/plugins/cpptools/builtineditordocumentprocessor.cpp index d5bfa51020..daf7ebf762 100644 --- a/src/plugins/cpptools/builtineditordocumentprocessor.cpp +++ b/src/plugins/cpptools/builtineditordocumentprocessor.cpp @@ -136,7 +136,7 @@ CppTools::CheckSymbols *createHighlighter(const CPlusPlus::Document::Ptr &doc, int line, column; convertPosition(textDocument, macro.utf16charsBegin(), &line, &column); - ++column; //Highlighting starts at (column-1) --> compensate here + Result use(line, column, name.size(), SemanticHighlighter::MacroUse); macroUses.append(use); } |