diff options
-rw-r--r-- | sw/source/filter/ww8/docxexport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx index 53731ac2126c..a48f4fb7b59e 100644 --- a/sw/source/filter/ww8/docxexport.cxx +++ b/sw/source/filter/ww8/docxexport.cxx @@ -85,6 +85,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/sequence.hxx> #include <comphelper/storagehelper.hxx> +#include <o3tl/any.hxx> #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <vcl/font.hxx> @@ -1192,8 +1193,7 @@ void DocxExport::WriteSettings() } else if (rProp.Name == "HyphenationZone") { - sal_Int16 nHyphenationZone; - rProp.Value >>= nHyphenationZone; + sal_Int16 nHyphenationZone = *o3tl::doAccess<sal_Int16>(rProp.Value); if (nHyphenationZone > 0) pFS->singleElementNS(XML_w, XML_hyphenationZone, FSNS(XML_w, XML_val), OString::number(nHyphenationZone)); |