summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-18 12:50:33 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2018-10-29 17:08:00 +0100
commit65d727548740afae7175fb04a12f50e119514497 (patch)
tree922f4e7d31d60ea9197045cd13f522fc3a669494 /sw
parent6b56ca7a9bf67bcada666f4cb1c2e20e7c0d512e (diff)
tdf#118820 untested speculative fix
Change-Id: I50a65d56251f978785fa446515cb374167c604e8 Reviewed-on: https://gerrit.libreoffice.org/60682 Tested-by: Jenkins Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/xml/xmlbrsh.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmlbrsh.cxx b/sw/source/filter/xml/xmlbrsh.cxx
index c9ed33c53dc7..aebefd159b8f 100644
--- a/sw/source/filter/xml/xmlbrsh.cxx
+++ b/sw/source/filter/xml/xmlbrsh.cxx
@@ -135,10 +135,14 @@ void SwXMLBrushItemImportContext::EndElement()
m_xGraphic = GetImport().loadGraphicFromBase64(m_xBase64Stream);
m_xBase64Stream = nullptr;
}
+
if (m_xGraphic.is())
{
Graphic aGraphic(m_xGraphic);
+ SvxGraphicPosition eOldGraphicPos = pItem->GetGraphicPos();
pItem->SetGraphic(aGraphic);
+ if (GPOS_NONE == eOldGraphicPos && GPOS_NONE != pItem->GetGraphicPos())
+ pItem->SetGraphicPos(GPOS_TILED);
}
if (!(pItem->GetGraphic()))