svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx | 4 +++- svx/source/svdraw/svdpntv.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
New commits: commit abe1c88fae4e396180e3d53c1a4df5a3ae924d14 Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Sat Apr 26 18:01:58 2025 +0200 Commit: Marco Cecchetti <marco.cecche...@collabora.com> CommitDate: Tue May 20 11:38:11 2025 +0200 cool#9200 form control: checkbox not shown when exporting to PDF/EPUB or printing Change-Id: I55f2285130914172a79c8c534f16ae6e2c3fa8ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184689 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> (cherry picked from commit 4f7e331af8c8109f71cef4e66fa913572e9ab2ed) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184808 (cherry picked from commit 5cdab87d35c4756814641120ddab7ffe6492208e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185169 Tested-by: Jenkins Reviewed-by: Marco Cecchetti <marco.cecche...@collabora.com> diff --git a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx index 67a30926a630..2f38aa0399db 100644 --- a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx @@ -281,7 +281,9 @@ namespace sdr::contact { const basegfx::B2DHomMatrix& _rViewTransformation, const ::basegfx::B2DHomMatrix& _rZoomLevelNormalization ) { // In the LOK case, control geometry is handled by LokControlHandler - if (comphelper::LibreOfficeKit::isActive()) + // except when the document is exported to PDF or printed, + // so we use isTiledPainting() in place of the more generic isActive() + if (comphelper::LibreOfficeKit::isTiledPainting()) return; OSL_PRECOND( _rControl.is(), "UnoControlContactHelper::adjustControlGeometry_throw: illegal control!" ); diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index b2327dfddfd0..53373de6acee 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -646,7 +646,9 @@ void SdrPaintView::EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFo // draw postprocessing, only for known devices // it is necessary to always paint FormLayer // In the LOK case control rendering is performed through LokControlHandler - if(!comphelper::LibreOfficeKit::isActive() && bPaintFormLayer) + // except when the document is exported to PDF or printed, + // so we use isTiledPainting() in place of the more generic isActive() + if(!comphelper::LibreOfficeKit::isTiledPainting() && bPaintFormLayer) { ImpFormLayerDrawing(rPaintWindow, pRedirector); }