Browse Source

Merge pull request #7266 in DESIGN/design from release/11.0 to feature/x

* commit 'a8e6fbd0f40d92c2a59ea8f34057aee24842ed11':
  REPORT-64172 创建图表组件封面图绘制错误
feature/x
superman 3 years ago
parent
commit
3522160cd6
  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; XChartEditor chartEditor = (XChartEditor) body;
Dimension size = chartEditor.getSize(); Dimension size = chartEditor.getSize();
BufferedImage chartImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB); 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); 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; return im;

Loading…
Cancel
Save