Correctly process editor background color (IDEA-71081)

This commit is contained in:
Kirill.Safonov
2011-06-17 15:29:01 +04:00
parent faf562b59a
commit 40ce2b158c
@@ -1670,7 +1670,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
private Color getBackgroundColor(final TextAttributes attributes) {
final Color attrColor = attributes.getBackgroundColor();
return attrColor == myScheme.getDefaultBackground() ? getBackgroundColor() : attrColor;
return Comparing.equal(attrColor, myScheme.getDefaultBackground()) ? getBackgroundColor() : attrColor;
}
private Color getBackgroundIgnoreForced() {