svx/source/sdr/contact/viewobjectcontact.cxx |   17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

New commits:
commit ef9daaea93839495d22dc53b3f7b46e304d98a04
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Nov 24 14:03:22 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Nov 24 17:48:55 2025 +0100

    no need to call InvalidatePartOfView in ViewObjectContact::ActionChanged
    
    since we are already adding ourselves to the lazy-invalidation code,
    there is no need to invalidate the view here.
    
    This was added in
       commit 3f068bf340ac22929a04529f5158fd2f6d8711d9
       Author: Vladimir Glazounov <[email protected]>
       Date:   Tue Aug 19 22:10:17 2008 +0000
       INTEGRATION: CWS aw033 (1.9.14); FILE MERGED
    
    along with a ton of other stuff, so no real explanation why it was done 
this way, I suspect it was an oversight.
    
    Change-Id: I5ba66c20d970659062aba0518b4c220536714bfe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194438
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx 
b/svx/source/sdr/contact/viewobjectcontact.cxx
index 960d4a8db74e..beb2163d4f0f 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -238,20 +238,9 @@ void ViewObjectContact::ActionChanged()
     // set local flag
     mbLazyInvalidate = true;
 
-    // force ObjectRange
-    getObjectRange();
-
-    if(!getObjectRange().isEmpty())
-    {
-        // invalidate current valid range
-        GetObjectContact().InvalidatePartOfView(maObjectRange);
-
-        // reset gridOffset, it needs to be recalculated
-        if (GetObjectContact().supportsGridOffsets())
-            resetGridOffset();
-        else
-            maObjectRange.reset();
-    }
+    // reset gridOffset, it needs to be recalculated
+    if (GetObjectContact().supportsGridOffsets())
+        resetGridOffset();
 
     // register at OC for lazy invalidate
     GetObjectContact().setLazyInvalidate(*this);

Reply via email to