summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/viewobjectcontact.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/contact/viewobjectcontact.cxx')
-rw-r--r--svx/source/sdr/contact/viewobjectcontact.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index 00f30f4248c5..fb6f0fc73ff1 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -31,6 +31,7 @@
#include <drawinglayer/primitive2d/transformprimitive2d.hxx>
#include <drawinglayer/primitive2d/structuretagprimitive2d.hxx>
#include <svx/svdobj.hxx>
+#include <svx/svdomedia.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdotext.hxx>
@@ -433,7 +434,8 @@ drawinglayer::primitive2d::Primitive2DContainer const & ViewObjectContact::getPr
}
::std::vector<sal_Int32> annotIds;
- if (eElement == vcl::PDFWriter::Annot)
+ if (eElement == vcl::PDFWriter::Annot
+ && !static_cast<SdrMediaObj*>(pSdrObj)->getURL().isEmpty())
{
auto const pPDFExtOutDevData(GetObjectContact().GetPDFExtOutDevData());
assert(pPDFExtOutDevData);