summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-18 12:50:33 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-11-08 18:01:05 +0100
commit6ed498a71482109fea731bb84f288f978bea12dc (patch)
treef7bd7faaacb0fc791137bcb2268531cae389790a /sw/source
parent8e5bbad9800eb9a2e2f1a17cc372d1a8bcc80498 (diff)
tdf#118820 fix table background fill
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> (cherry picked from commit 65d727548740afae7175fb04a12f50e119514497) Reviewed-on: https://gerrit.libreoffice.org/62513 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source')
-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()))