svx/source/sdr/contact/objectcontactofpageview.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 34387332173782498acd4998c7c665d04ebc3c7d
Author:     Armin Le Grand (allotropia) <armin.le.grand.ext...@allotropia.de>
AuthorDate: Wed Aug 2 16:02:16 2023 +0200
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Thu Aug 3 00:58:10 2023 +0200

    tdf#153102: use given RedrawArea in DoProcessDisplay
    
    In ObjectContactOfPageView::DoProcessDisplay someone changed
    (seven years ago) to ignore the given RedrawArea if
    comphelper::LibreOfficeKit::isActive(). Using and setting that
    RedrawArea is needed to get the visual clipping against e.g.
    PageBounds in Writer paint working. Adding that again.
    
    Change-Id: If628039379c2756aac8865c3632e37c19993d0da
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155262
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx 
b/svx/source/sdr/contact/objectcontactofpageview.cxx
index 1c698227a951..eadfe787966e 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -149,7 +149,9 @@ namespace sdr::contact
             bool bClipRegionPushed(false);
             const vcl::Region& rRedrawArea(rDisplayInfo.GetRedrawArea());
 
-            if(!rRedrawArea.IsEmpty() && 
!comphelper::LibreOfficeKit::isActive())
+            // tdf#153102 using the given RedrawArea is needed e.g. for 
Writer's
+            // visual clipping against PageBounds (also for android viewer)
+            if(!rRedrawArea.IsEmpty())
             {
                 bClipRegionPushed = true;
                 pOutDev->Push(vcl::PushFlags::CLIPREGION);

Reply via email to