diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java index 4f311dee1688..47e01bbe9a9d 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java @@ -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() {