diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-06-08 21:35:05 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-06-18 11:25:08 +0200 |
commit | d329fb26e422cf359db190b20e4268b640b7ac82 (patch) | |
tree | 58736aae9b30c23cb72a9d4547433a523b81c805 /svx/source | |
parent | 016cd3860171f622d2a2475cf79c8463bebd58b2 (diff) |
annot: don't render objects marked as annotation in PDF export
Objects that are marked as annotation shouldn't be rendered to the
PDF document. Those should be written to the PDF as annotations
(if output of annotations is enabled in the PDF export options).
Change-Id: I60650b5a64dc52da6d32d8ac92441e4b21900126
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168653
Tested-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx index 0cc353a5b65c..fc132946883a 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrobj.cxx @@ -89,6 +89,9 @@ bool ViewObjectContactOfSdrObj::isPrimitiveVisible(const DisplayInfo& rDisplayIn return false; } + if (GetObjectContact().isOutputToPDFFile() && rObject.isAnnotationObject()) + return false; + // Test for Calc object hiding (for OLE and Graphic it's extra, see there) const SdrPageView* pSdrPageView = GetObjectContact().TryToGetSdrPageView(); |