diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-11 21:16:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-11 21:16:51 +0100 |
commit | d8a527abcecbb8b5783803fa322e0de310967a1b (patch) | |
tree | 4383074b0bae90260c4ffb1c48a6192c4ad34f06 /sw/source | |
parent | a96425461482ac24e54f01e3a48b4fcd96a45bda (diff) |
fix assert on export of ooo103014-1.odt to .doc
Change-Id: Ice8bfc098fe539c8c58fd0dc28fdde5ad4a7ad03
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 58368916936c..f779521e9f55 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -3076,6 +3076,11 @@ void MSWordExportBase::ExportDocument( bool bWriteAll ) ExportDocument_Impl(); + // park curpam in a "safe place" now that document is fully exported before + // toggling redline mode to avoid ~SwIndexReg assert e.g. export + // ooo103014-1.odt to .doc + *pCurPam = *pOrigPam; + if ( mnRedlineMode != pDoc->getIDocumentRedlineAccess().GetRedlineMode() ) pDoc->getIDocumentRedlineAccess().SetRedlineMode( (RedlineMode_t)(mnRedlineMode) ); } |