From c03b4f162f49b9197dcd95ff58938496a2d99640 Mon Sep 17 00:00:00 2001 From: Starryi Date: Fri, 21 Jan 2022 15:31:19 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-65778=2011.0=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=A0=BC=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=97=AE=E9=A2=98-=E6=96=B0=E5=BB=BA=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E6=97=B6=E5=B7=A5=E5=85=B7=E9=A2=84=E8=A7=88=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=98=AF=E5=AD=97=E4=BD=93=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E5=9C=A8=E5=8D=95=E5=85=83=E6=A0=BC=E9=87=8C=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E5=86=85=E5=AE=B9=E5=90=8E=EF=BC=8C=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=8F=98=E6=88=90=E4=BA=86=E4=B8=BB=E9=A2=98=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=9A=84=E9=BB=91=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【问题原因】 若未选中任何单元格,则报表块工具栏上的字体相关配置应跟随当前模版主题中的 默认单元格样式 【改动思路】 同上 --- .../java/com/fr/design/actions/utils/ReportActionUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/designer-realize/src/main/java/com/fr/design/actions/utils/ReportActionUtils.java b/designer-realize/src/main/java/com/fr/design/actions/utils/ReportActionUtils.java index 620614893..b003613ba 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/utils/ReportActionUtils.java +++ b/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()); if (editCellElement == null) { - return AdjustWorkBookDefaultStyleUtils.adjustCellElement(Style.DEFAULT_STYLE); + editCellElement = DefaultThemedTemplateCellElementCase.createInstance(); + AdjustWorkBookDefaultStyleUtils.adjustCellElement(editCellElement); } //peter:直接返回当前编辑元素的Style