summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlbrsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/xml/xmlbrsh.cxx')
-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()))