diff options
-rw-r--r-- | oox/source/export/shapes.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 9810d3b81be9..debb5b70fed3 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -441,15 +441,16 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape ) { OUString sURL; mAny >>= sURL; - if( !sURL.isEmpty() ) { - OUString sRelId = mpFB->addRelation( mpFS->getOutputStream(), - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", - sURL, true ); - - mpFS->singleElementNS( XML_a, XML_hlinkClick, - FSNS( XML_r,XML_id ), USS( sRelId ), - FSEND ); - } + if( !sURL.isEmpty() ) + { + OUString sRelId = mpFB->addRelation( mpFS->getOutputStream(), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", + sURL, true ); + + mpFS->singleElementNS( XML_a, XML_hlinkClick, + FSNS( XML_r,XML_id ), USS( sRelId ), + FSEND ); + } } pFS->endElementNS(mnXmlNamespace, XML_cNvPr); pFS->singleElementNS( mnXmlNamespace, XML_cNvSpPr, FSEND ); |