summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-04-04 17:53:18 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-04-04 20:26:09 +0200
commit599ff05300599d4e4ce818092f18e76e738b921e (patch)
tree76d6a60f8912b17e8db0d49c6bcc01a9503b949a /writerfilter
parentb9f7535e499002706f276c0275c1e6c3c7b6bdd4 (diff)
Related: tdf#115719 DOCX import: fix ignore of increased anchored obj spacing
If there is only a single anchored object, then ignore only the current paragraph, not all paragraphs of the section. Change-Id: I5b44a3df05de325025ec90545667b349e875b31f Reviewed-on: https://gerrit.libreoffice.org/52398 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/PropertyMap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index c1d16437cfa3..85c635fc3b32 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -1144,9 +1144,9 @@ void SectionPropertyMap::HandleIncreasedAnchoredObjectSpacing(DomainMapper_Impl&
std::vector<AnchoredObjectInfo>& rAnchoredObjectAnchors = rDM_Impl.m_aAnchoredObjectAnchors;
for (auto& rAnchor : rAnchoredObjectAnchors)
{
- // Ignore the case when there is a single shape only.
+ // Ignore this paragraph when there is a single shape only.
if (rAnchor.m_aAnchoredObjects.size() < 2)
- return;
+ continue;
// Analyze the anchored objects of this paragraph, now that we know the
// page width.