Kaydet (Commit) 65d72754 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Xisco Faulí

tdf#118820 untested speculative fix

Change-Id: I50a65d56251f978785fa446515cb374167c604e8
Reviewed-on: https://gerrit.libreoffice.org/60682
Tested-by: Jenkins
Tested-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
üst 6b56ca7a
......@@ -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()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment