diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 17:14:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 18:12:08 +0000 |
commit | 89283cdc4eacc9916eb95d9626703d7bea004575 (patch) | |
tree | 7eecfe452307b2ca9c93e0260e7de96765c2a823 /svx/source/svdraw/svddrgmt.cxx | |
parent | e9c7da896f1b9dd66ee57883607afe566f2c5d67 (diff) |
coverity#735510 Logically dead code
Change-Id: I8d06dfdae79045b978ab3f477209173396b88574
Diffstat (limited to 'svx/source/svdraw/svddrgmt.cxx')
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 224ebf7b9e99..bbb6c4790919 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -3147,17 +3147,14 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) { if (DragStat().CheckMinMoved(rPnt)) { - Point aPnt(rPnt); bool bNeuMoveOnly=getSdrDragView().IsMoveOnlyDragging(); bAtCenter=false; SdrCrookMode eNeuMode=getSdrDragView().GetCrookMode(); bool bNeuContortion=!bNeuMoveOnly && ((bContortionAllowed && !getSdrDragView().IsCrookNoContortion()) || !bNoContortionAllowed); bResize=!getSdrDragView().IsOrtho() && bResizeAllowed && !bNeuMoveOnly; bool bNeuRotate=bRotateAllowed && !bNeuContortion && !bNeuMoveOnly && eNeuMode==SDRCROOK_ROTATE; - long nSA=0; - if (nSA==0) - aPnt=GetSnapPos(aPnt); + Point aPnt(GetSnapPos(rPnt)); Point aNeuCenter(aMarkCenter.X(),aStart.Y()); @@ -3250,23 +3247,6 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) if (bResize) { - if (nSA!=0) - { // angle snapping - long nWink0=nPntWink; - nPntWink+=nSA/2; - nPntWink/=nSA; - nPntWink*=nSA; - BigInt a2(nNeuRad); - a2*=BigInt(nWink); - a2/=BigInt(nWink0); - nNeuRad=long(a2); - - if (bVertical) - aNeuCenter.X()=aStart.X()+nNeuRad; - else - aNeuCenter.Y()=aStart.Y()+nNeuRad; - } - long nMul=(long)(nUmfang*NormAngle360(nPntWink)/36000); if (bAtCenter) @@ -3281,23 +3261,6 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) if (nWink==0) bValid=false; - - if (bValid && nSA!=0) - { // angle snapping - long nWink0=nWink; - nWink+=nSA/2; - nWink/=nSA; - nWink*=nSA; - BigInt a2(nNeuRad); - a2*=BigInt(nWink); - a2/=BigInt(nWink0); - nNeuRad=long(a2); - - if (bVertical) - aNeuCenter.X()=aStart.X()+nNeuRad; - else - aNeuCenter.Y()=aStart.Y()+nNeuRad; - } } } |