Browse Source

Pull request #7665: REPORT-65778 11.0设计器单元格默认字体问题-新建报表时工具预览字体默认是字体,但在单元格里输入任意内容后,字体变成了主题默认的黑体

Merge in DESIGN/design from ~STARRYI/design:feature/x to feature/x

* commit 'c03b4f162f49b9197dcd95ff58938496a2d99640':
  REPORT-65778 11.0设计器单元格默认字体问题-新建报表时工具预览字体默认是字体,但在单元格里输入任意内容后,字体变成了主题默认的黑体
feature/x
starryi 3 years ago
parent
commit
362ea6a8d8
  1. 3
      designer-realize/src/main/java/com/fr/design/actions/utils/ReportActionUtils.java

3
designer-realize/src/main/java/com/fr/design/actions/utils/ReportActionUtils.java

@ -114,7 +114,8 @@ public class ReportActionUtils {
CellElement editCellElement = report.getCellElement(((CellSelection) sel).getColumn(), ((CellSelection) sel).getRow()); CellElement editCellElement = report.getCellElement(((CellSelection) sel).getColumn(), ((CellSelection) sel).getRow());
if (editCellElement == null) { if (editCellElement == null) {
return AdjustWorkBookDefaultStyleUtils.adjustCellElement(Style.DEFAULT_STYLE); editCellElement = DefaultThemedTemplateCellElementCase.createInstance();
AdjustWorkBookDefaultStyleUtils.adjustCellElement(editCellElement);
} }
//peter:直接返回当前编辑元素的Style //peter:直接返回当前编辑元素的Style

Loading…
Cancel
Save