[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 2 08:54:21 UTC 2020


 svx/source/svdraw/svdoedge.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 3fca0f501f6bc58039a0d49ee6704e59d90f5437
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Apr 2 09:08:45 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 2 10:53:48 2020 +0200

    cid#1461094 Unchecked return value
    
    Rectangle::IsOver is only useful for its ignored return, so remove
    it and thus aMouseRect2
    
    Change-Id: I6b93de4d0d62dd56abe52cc0b65c7d905f4c847e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91545
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index 8218f2659e95..327ed76d661c 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -2225,12 +2225,10 @@ bool SdrEdgeObj::ImpFindConnector(const Point& rPt, const SdrPageView& rPV, SdrO
                     }
                 }
                 if (bFnd) {
-                    tools::Rectangle aMouseRect2(rPt,rPt);
                     aMouseRect.AdjustLeft( -nBoundHitTol );
                     aMouseRect.AdjustTop( -nBoundHitTol );
                     aMouseRect.AdjustRight(nBoundHitTol );
                     aMouseRect.AdjustBottom(nBoundHitTol );
-                    aObjBound.IsOver(aMouseRect2);
                 }
 
             }


More information about the Libreoffice-commits mailing list