|
|
@ -1715,6 +1715,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
|
|
|
|
|
|
|
|
protected void setUpTheme4NewTemplate() { |
|
|
|
protected void setUpTheme4NewTemplate() { |
|
|
|
TemplateTheme theme = getUsingTemplateThemeConfig().cachedFetchTheme4NewTemplate(); |
|
|
|
TemplateTheme theme = getUsingTemplateThemeConfig().cachedFetchTheme4NewTemplate(); |
|
|
|
|
|
|
|
if (theme != null) { |
|
|
|
|
|
|
|
theme = getUsingTemplateThemeConfig().createNewTheme(); |
|
|
|
|
|
|
|
} |
|
|
|
TemplateThemeAttrMark themeAttrMark = template.getAttrMark(TemplateThemeAttrMark.XML_TAG); |
|
|
|
TemplateThemeAttrMark themeAttrMark = template.getAttrMark(TemplateThemeAttrMark.XML_TAG); |
|
|
|
if (themeAttrMark == null) { |
|
|
|
if (themeAttrMark == null) { |
|
|
|
themeAttrMark = new TemplateThemeAttrMark(); |
|
|
|
themeAttrMark = new TemplateThemeAttrMark(); |
|
|
|