summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-22 17:58:57 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-22 18:39:43 +0200
commit7dba64e6e4e7dfa4268b5d4c3ba296ac02aa814b (patch)
treea6615890689f6249c9477bd958ba4b88d22ff3c4 /xmloff
parent55d052d2ae94522237206bc5ff260ea4ae037f96 (diff)
tdf#91140: tweak fix a bit, turns out xmloff was also passing empty URL
Change-Id: Ia6e1fbe18e72c9c06915e1b437076a1f56a6c206 (cherry picked from commit 12f907da9535ae9fb28fb7ef1b05240eabf51e82)
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/XMLBackgroundImageContext.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/style/XMLBackgroundImageContext.cxx b/xmloff/source/style/XMLBackgroundImageContext.cxx
index 18749d82f4a5..5acd95109076 100644
--- a/xmloff/source/style/XMLBackgroundImageContext.cxx
+++ b/xmloff/source/style/XMLBackgroundImageContext.cxx
@@ -389,7 +389,8 @@ void XMLBackgroundImageContext::EndElement()
else if( GraphicLocation_NONE == ePos )
ePos = GraphicLocation_TILED;
- aProp.maValue <<= sURL;
+ if (!sURL.isEmpty())
+ aProp.maValue <<= sURL;
aPosProp.maValue <<= ePos;
aFilterProp.maValue <<= sFilter;
aTransparencyProp.maValue <<= nTransparency;