summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/forms/propertyexport.cxx')
-rw-r--r--xmloff/source/forms/propertyexport.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx
index 39d839e252dd..4c61da8fdf50 100644
--- a/xmloff/source/forms/propertyexport.cxx
+++ b/xmloff/source/forms/propertyexport.cxx
@@ -429,7 +429,9 @@ namespace xmloff
::rtl::OUString sTargetLocation = comphelper::getString(m_xProps->getPropertyValue(_sPropertyName));
if ( sTargetLocation.getLength() )
- sTargetLocation = m_rContext.getGlobalContext().GetRelativeReference(sTargetLocation);
+ // If this isn't a GraphicObject then GetRelativeReference
+ // will be called anyway ( in AddEmbeddedGraphic )
+ sTargetLocation = m_rContext.getGlobalContext().AddEmbeddedGraphicObject(sTargetLocation);
AddAttribute(OAttributeMetaData::getCommonControlAttributeNamespace(_nProperty)
,OAttributeMetaData::getCommonControlAttributeName(_nProperty)
, sTargetLocation);