svx/source/sdr/contact/viewobjectcontact.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 6c38cd599643661e54d3bb262191ba0f5ec2130b Author: Noel Grandin <[email protected]> AuthorDate: Tue Sep 30 14:44:16 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Sep 30 17:49:43 2025 +0200 remove unnecessary code in ~ViewObjectContact if maObjectRange is not empty, then calling getObjectRange() is going to have no effect. Change-Id: I78677c2ba0f5ced45b4ae3c30207a437bb6766f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191666 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 a67dff4e113e..aecbd0f9f016 100644 --- a/svx/source/sdr/contact/viewobjectcontact.cxx +++ b/svx/source/sdr/contact/viewobjectcontact.cxx @@ -170,10 +170,7 @@ ViewObjectContact::~ViewObjectContact() if (!maObjectRange.isEmpty()) { // invalidate in view - if(!getObjectRange().isEmpty()) - { - GetObjectContact().InvalidatePartOfView(maObjectRange); - } + GetObjectContact().InvalidatePartOfView(maObjectRange); } // delete PrimitiveAnimation
