summaryrefslogtreecommitdiffstats
path: root/oox/source/export
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/export')
-rw-r--r--oox/source/export/vmlexport.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index 1090b0857f..8438befa62 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -741,8 +741,11 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle&
Graphic aGraphic;
GraphicConverter::Import(aStream, aGraphic);
OUString aImageId = m_pTextExport->GetDrawingML().writeGraphicToStorage(aGraphic, false);
- pAttrList->add(FSNS(XML_r, XML_id), aImageId);
- imageData = true;
+ if (!aImageId.isEmpty())
+ {
+ pAttrList->add(FSNS(XML_r, XML_id), aImageId);
+ imageData = true;
+ }
}
if (rProps.GetOpt(ESCHER_Prop_fNoFillHitTest, nValue))