Browse Source

REPORT-64172 创建图表组件封面图绘制错误

bugfix/11.0
Tommy 3 years ago
parent
commit
458e4397df
  1. 4
      designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java

4
designer-form/src/main/java/com/fr/design/mainframe/share/action/CreateComponentAction.java

@ -273,9 +273,9 @@ public class CreateComponentAction extends UpdateAction {
XChartEditor chartEditor = (XChartEditor) body;
Dimension size = chartEditor.getSize();
BufferedImage chartImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB);
Insets margin = chartEditor.getInsets();;
Insets margin = chartEditor.getInsets();
chartEditor.getDesignerEditor().paintEditor(chartImage.getGraphics(), size, margin);
im.getGraphics().drawImage(chartImage, 0, chartEditor.getY(), null);
im.getGraphics().drawImage(chartImage, chartEditor.getX(), chartEditor.getY(), null);
}
}
return im;

Loading…
Cancel
Save