summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-14 10:31:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-14 14:52:30 +0100
commit3208ded46864e582f6264a96c9d4578fc58e1984 (patch)
tree6a74522cf2472efa38fcb6cf40b1c810786cf7fb /svx
parentbcca21c44d22315af579cad6a404fea43de31bc9 (diff)
cid#1471680 help coverity see that "Division or modulo by zero" is bogus
Change-Id: I3c349b2cc274de6a74cb1de71b630c4fcb64231e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109268 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrgmt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index cb07133b8390..4d3453889704 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -1056,7 +1056,7 @@ void SdrDragMovHdl::MoveSdrDrag(const Point& rNoSnapPnt)
if (getSdrDragView().IsOrtho() && nSA!=9000_deg100)
nSA=4500_deg100;
- if (nSA!=0_deg100)
+ if (nSA)
{ // angle snapping
SdrHdlKind eRef=SdrHdlKind::Ref1;
@@ -2126,7 +2126,7 @@ void SdrDragRotate::MoveSdrDrag(const Point& rPnt_)
if (!getSdrDragView().IsRotateAllowed())
nSA=9000_deg100;
- if (nSA!=0_deg100)
+ if (nSA)
{ // angle snapping
nNewAngle += nSA / 2_deg100;
nNewAngle /= nSA;
@@ -2346,7 +2346,7 @@ void SdrDragShear::MoveSdrDrag(const Point& rPnt)
if (bNeg)
nNewAngle=-nNewAngle;
- if (nSA!=0_deg100)
+ if (nSA)
{ // angle snapping
nNewAngle += nSA / 2_deg100;
nNewAngle /= nSA;