summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-11-06 18:42:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-11-11 15:33:03 +0000
commitd3d714f7a16df13b97a06ec68234d08d57a09479 (patch)
tree1e99580d6e30513a1e0e1b50ecd88914d7a4bea4 /sax
parent5bbad83f5a4144181a46c68784a3ff3e3f368c2d (diff)
tdf#103544: DOCX exp.: Image loss when have a frame anchored to the same para.
Regression from: 83d51e5e52688c4c9bc0ad70a511458bb06a242d Partly revert the commit causes this regression. I checked the related bugs (tdf#78590,tdf#80748) intended to be fixed by this commit and reverting this part does not bring back the corruption. I guess something changed in frames' and text boxes' import in the meantime, because this MergeMarks::IGNORE is useless now. Reviewed-on: https://gerrit.libreoffice.org/30351 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com> Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport9.cxx Change-Id: If17776e8628561961c7ce2a2994e3fc609f75639 Reviewed-on: https://gerrit.libreoffice.org/30358 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/tools/fastserializer.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 49ed24b8e644..620fe68949ad 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -405,7 +405,7 @@ namespace sax_fastparser {
// flush, so that we get everything in getData()
maCachedOutputStream.flush();
- if (maMarkStack.size() == 1 && eMergeType != MergeMarks::IGNORE)
+ if (maMarkStack.size() == 1)
{
#ifdef DBG_UTIL
while (!maMarkStack.top()->m_DebugEndedElements.empty())
@@ -469,8 +469,6 @@ namespace sax_fastparser {
topDebugEndedElements,
topDebugStartedElements);
break;
- case MergeMarks::IGNORE:
- break;
}
#endif
if (maMarkStack.empty())
@@ -488,8 +486,6 @@ namespace sax_fastparser {
case MergeMarks::APPEND: maMarkStack.top()->append( aMerge ); break;
case MergeMarks::PREPEND: maMarkStack.top()->prepend( aMerge ); break;
case MergeMarks::POSTPONE: maMarkStack.top()->postpone( aMerge ); break;
- case MergeMarks::IGNORE: break;
-
}
}