svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx | 4 +++- svx/source/svdraw/svdpntv.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
New commits: commit 5cdab87d35c4756814641120ddab7ffe6492208e Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Sat Apr 26 18:01:58 2025 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Mon May 5 11:32:06 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 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 5cee983a0b73..75eca2fb83c0 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -636,7 +636,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); }