From eb358d77291eba677141bab113dc27d7aabb0f3e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 11:44:04 +0200 Subject: Merging upstream version 4:24.2.2. Signed-off-by: Daniel Baumann --- oox/source/export/vmlexport.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'oox/source') 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)) -- cgit v1.2.3