aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-28 11:54:37 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-28 11:54:37 +0000
commit3aaf6a0c874d06a3294454e515a9ec3c81bbd8b7 (patch)
tree9f4c9250abc5a0d3f988fe909515dc083afc2c05 /src
parentd935cfbd79f7b78e1957c09a279eed1d7acd8b70 (diff)
fix exceeds_dist: don't double the loop counter (the caller has done that)
git-svn-id: http://skia.googlecode.com/svn/trunk@1731 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPath.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index b88b20f90c..99a9e4c55d 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1198,7 +1198,6 @@ static bool exceeds_dist(const SkScalar p[], const SkScalar q[], SkScalar dist,
int count) {
SkASSERT(dist > 0);
- count *= 2;
for (int i = 0; i < count; i++) {
if (SkScalarAbs(p[i] - q[i]) > dist) {
return true;