summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--writerfilter/source/ooxml/factoryimpl_ns.xsl7
-rw-r--r--writerfilter/source/ooxml/model.xml2
2 files changed, 8 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/factoryimpl_ns.xsl b/writerfilter/source/ooxml/factoryimpl_ns.xsl
index bd913d630c52..407f40524628 100644
--- a/writerfilter/source/ooxml/factoryimpl_ns.xsl
+++ b/writerfilter/source/ooxml/factoryimpl_ns.xsl
@@ -494,6 +494,13 @@ CreateElementMapPointer </xsl:text>
<xsl:text>
pHandler-&gt;endField();</xsl:text>
</xsl:when>
+ <xsl:when test="@action='simplefieldend'">
+ <xsl:text>
+ pHandler-&gt;endField();
+ pHandler-&gt;startCharacterGroup();
+ pHandler-&gt;text("");
+ pHandler-&gt;endCharacterGroup();</xsl:text>
+ </xsl:when>
<xsl:when test="@action='printproperty'">
<xsl:text>
dynamic_cast&lt;OOXMLFastContextHandlerStream*&gt;(pHandler)-&gt;sendProperty(</xsl:text>
diff --git a/writerfilter/source/ooxml/model.xml b/writerfilter/source/ooxml/model.xml
index e683be1e8f1f..54f4b201de2f 100644
--- a/writerfilter/source/ooxml/model.xml
+++ b/writerfilter/source/ooxml/model.xml
@@ -22153,7 +22153,7 @@
<action name="start" action="printproperty" sendtokenid="ooxml:CT_SimpleField_instr"/>
<action name="start" action="endCharacterGroup"/>
<action name="start" action="fieldsep"/>
- <action name="end" action="fieldend"/>
+ <action name="end" action="simplefieldend"/>
</resource>
<resource name="ST_FldCharType" resource="List">
<value name="begin" tokenid="ooxml:Value_ST_FldCharType_begin">begin</value>