From d3a415a9c03c8a93aaa6c69f1abdea4f7089f5be Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 21 Apr 2015 03:30:21 +0300 Subject: [PATCH] Frame and editor background images: turn off for non-file-editors --- .../com/intellij/openapi/editor/impl/EditorComponentImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java index b7a928fccd3f..6835cda13dbf 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorComponentImpl.java @@ -170,7 +170,8 @@ public class EditorComponentImpl extends JComponent implements Scrollable, DataP myApplication.editorPaintStart(); try { - Graphics2D gg = IdeBackgroundUtil.withEditorBackground(g, this); + Graphics2D gg = !EditorUtil.isRealFileEditor(myEditor) ? (Graphics2D)g : + IdeBackgroundUtil.withEditorBackground(g, this); UIUtil.setupComposite(gg); UISettings.setupAntialiasing(gg); myEditor.paint(gg);