Browse Source

Pull request #7211: REPORT-64172 创建图表组件封面图绘制错误

Merge in DESIGN/design from ~TOMMY/design:release/11.0 to release/11.0

* commit '458e4397df1a642ceae7e29e110c3dcec421a87d':
  REPORT-64172 创建图表组件封面图绘制错误
bugfix/11.0
Tommy 3 years ago
parent
commit
a8e6fbd0f4
  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