summaryrefslogtreecommitdiff
path: root/basegfx/source/curve/b2dbeziertools.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-16 14:06:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-18 09:17:30 +0200
commit60861faa8653afebb504cfbcaeed633d2373a27d (patch)
tree1dec7a4ba05a212052fd64439645f024643d78ec /basegfx/source/curve/b2dbeziertools.cxx
parentd89fa2bd4944625e2dbe56d5709a3f126db24f21 (diff)
loplugin:comparisonwithconstant in basegfx
Change-Id: I6953640a1aa2e58fe2ea6555291c4f4a5271770f Reviewed-on: https://gerrit.libreoffice.org/37680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/curve/b2dbeziertools.cxx')
-rw-r--r--basegfx/source/curve/b2dbeziertools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/curve/b2dbeziertools.cxx b/basegfx/source/curve/b2dbeziertools.cxx
index ec6ef1c63213..f115819ad02f 100644
--- a/basegfx/source/curve/b2dbeziertools.cxx
+++ b/basegfx/source/curve/b2dbeziertools.cxx
@@ -97,7 +97,7 @@ namespace basegfx
// fDistance is in ]0.0 .. fLength[
- if(1 == mnEdgeCount)
+ if(mnEdgeCount == 1)
{
// not a bezier, linear edge
return fDistance / fLength;