forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user