Editor: Fix search result backgound for declarations

Don't add a background to a format without a background
if a mixin is applied.

Task-number: QTCREATORBUG-17314
Change-Id: Ie76fe7f69e98e9cfdfa290c40f0774dbe6f86cea
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
David Schulz
2016-12-05 12:46:48 +01:00
parent ebf8c1eaf0
commit c8215d4b6e

View File

@@ -233,10 +233,6 @@ void FontSettings::addMixinStyle(QTextCharFormat &textCharFormat,
textCharFormat.setBackground(mixBrush(textCharFormat.background(),
format.relativeBackgroundSaturation(),
format.relativeBackgroundLightness()));
} else {
textCharFormat.setBackground(mixBrush(m_scheme.formatFor(C_TEXT).background(),
format.relativeBackgroundSaturation(),
format.relativeBackgroundLightness()));
}
if (!textCharFormat.fontItalic())