From 7d72996fa3102f34d191b1907cb87672a08a3b69 Mon Sep 17 00:00:00 2001 From: mae Date: Thu, 24 Sep 2009 15:19:45 +0200 Subject: [PATCH] fix cppeditor occurance extra selections only set the background, we do not want to modify foreground properties set by the syntax highlighter or the link --- src/plugins/cppeditor/cppeditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 024051d9ce4..5dec7a87115 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -1726,6 +1726,11 @@ void CPPEditor::setFontSettings(const TextEditor::FontSettings &fs) m_occurrencesFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_OCCURRENCES)); m_occurrencesUnusedFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_OCCURRENCES_UNUSED)); m_occurrenceRenameFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_OCCURRENCES_RENAME)); + + // only set the background, we do not want to modify foreground properties set by the syntax highlighter or the link + m_occurrencesFormat.clearForeground(); + m_occurrencesUnusedFormat.clearForeground(); + m_occurrenceRenameFormat.clearForeground(); } void CPPEditor::unCommentSelection()