summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par5.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-10-18 16:50:31 +0200
committerMichael Stahl <michael.stahl@cib.de>2019-10-23 13:08:22 +0200
commit4212803e08052af2c1b3618f52fefb651c429345 (patch)
treec55abe2d356e13ecfeb13371d09e12b920d4b5e4 /sw/source/filter/ww8/ww8par5.cxx
parent6eb1c2304d257d16858b7b51cad63f1dc2bde88b (diff)
sw: WW8 import: be a little more flexible with FORMTEXT fields
The subsequent export change will somehow create things like (rr) p pF->nLCode $1 = 13 (rr) p rStr $2 = " FORMTEXT \001\062\060" ... so be a little less strict with the 0x01. Change-Id: Ie99002d099a3803989b71ae8c26b7f4bfe61c943 Reviewed-on: https://gerrit.libreoffice.org/81083 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/source/filter/ww8/ww8par5.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 1ddbb49c3823..4089c42a665f 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -895,6 +895,7 @@ long SwWW8ImplReader::Read_Field(WW8PLCFManResult* pRes)
if (aF.nId == 33) aF.bCodeNest=false; // do not recurse into nested page fields
bool bCodeNest = aF.bCodeNest;
if ( aF.nId == 6 ) bCodeNest = false; // We can handle them and lose the inner data
+ if (aF.nId == 70) bCodeNest = false; // need to import 0x01 in FORMTEXT
m_aFieldStack.emplace_back(*m_pPaM->GetPoint(), aF.nId);