Frame and editor background images: turn off for non-file-editors

This commit is contained in:
Gregory.Shrago
2015-04-21 03:30:21 +03:00
parent 84a35daea4
commit d3a415a9c0
@@ -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);