Browse Source

REPORT-58383 【回归测试】聚合报表纸张背景-跟随主题,设计器内配置预览效果不正确

【问题原因】
FollowingThemePane只返回了表单模版所使用的主题,导致其
无法获取报表模版使用的主题

【改动思路】
同上
fix-lag
Starryi 3 years ago
parent
commit
ebdba76f2e
  1. 5
      designer-base/src/main/java/com/fr/design/gui/style/FollowingThemePane.java

5
designer-base/src/main/java/com/fr/design/gui/style/FollowingThemePane.java

@ -114,10 +114,7 @@ public class FollowingThemePane extends BasicPane implements UIObserver {
public TemplateTheme getUsingTheme() {
JTemplate<?, ?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (template != null) {
TemplateTheme theme = template.getTemplateTheme();
if (theme instanceof FormTheme) {
return theme;
}
return template.getTemplateTheme();
}
return null;
}

Loading…
Cancel
Save