diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-05-25 19:43:56 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-05-26 10:57:03 +0200 |
commit | 8061cd765c7854667550d6aafda5832715648876 (patch) | |
tree | ba9f3d0120f492f9254326cd20c34110d7ccb184 | |
parent | 7d9b3393e2632247624d8a1e3129365290d1b60b (diff) |
tdf#155436 svx: PDF export: fix crash on SdrMediaObj without URL
Both sw and sd don't call CreateScreen() if there is no URL.
(regression from commit e84b310b59825fd572d79def98c3d21566aac603)
Change-Id: I087511bb6ed41b0e39321f6ca8684f60261f01cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152282
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontact.cxx | 4 |
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); |