From 40ce2b158c48730bd17f5a312dffbc5784a7c9ad Mon Sep 17 00:00:00 2001 From: "Kirill.Safonov" Date: Fri, 17 Jun 2011 15:26:09 +0400 Subject: [PATCH] Correctly process editor background color (IDEA-71081) --- .../src/com/intellij/openapi/editor/impl/EditorImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {