IDEA-164566 [EditorFragmentComponent to pass valid comp for g2d]

This commit is contained in:
Anton Tarasov
2016-12-13 19:42:16 +03:00
parent 244d51c8b8
commit 315af2135c
@@ -85,7 +85,7 @@ public class EditorFragmentComponent extends JPanel {
editor.getScrollingModel().scrollHorizontally(0);
}
final BufferedImage textImage = UIUtil.createImage(this, textImageWidth, textImageHeight, BufferedImage.TYPE_INT_RGB);
final BufferedImage textImage = UIUtil.createImage(editor.getComponent(), textImageWidth, textImageHeight, BufferedImage.TYPE_INT_RGB);
Graphics textGraphics = textImage.getGraphics();
EditorUIUtil.setupAntialiasing(textGraphics);