From f5fb9932a2114d1e7e8e74186923368032d063b9 Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Mon, 26 Nov 2018 14:50:34 +0100 Subject: 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 --- src/plugins/cpptools/builtineditordocumentprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools') 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); } -- cgit v1.2.1