mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid wrong visible rect (IDEA-89107)
This commit is contained in:
@@ -1752,8 +1752,9 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
*/
|
||||
public void startDumb() {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
final EditorComponentImpl component = getContentComponent();
|
||||
final Rectangle rect = component.getVisibleRect();
|
||||
final JComponent component = getContentComponent();
|
||||
final JComponent viewPort = (JComponent)component.getParent();
|
||||
final Rectangle rect = viewPort.getVisibleRect();
|
||||
BufferedImage image = new BufferedImage(rect.width, rect.height, BufferedImage.TYPE_INT_RGB);
|
||||
final Graphics2D graphics = image.createGraphics();
|
||||
UISettings.setupAntialiasing(graphics);
|
||||
|
||||
Reference in New Issue
Block a user