fix line intersection
git-svn-id: http://skia.googlecode.com/svn/trunk/src@12197 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/pathops/SkDLineIntersection.cpp b/pathops/SkDLineIntersection.cpp
index 33c8480..f10b440 100644
--- a/pathops/SkDLineIntersection.cpp
+++ b/pathops/SkDLineIntersection.cpp
@@ -228,7 +228,9 @@
fT[1][index] = 1 - fT[1][index];
}
}
- computePoints(line, result);
+ fPt[0].fX = xIntercept;
+ fPt[0].fY = y;
+ fUsed = 1;
}
}
if (fAllowNear || result == 2) {
@@ -314,7 +316,9 @@
fT[1][index] = 1 - fT[1][index];
}
}
- computePoints(line, result);
+ fPt[0].fX = x;
+ fPt[0].fY = yIntercept;
+ fUsed = 1;
}
}
if (fAllowNear || result == 2) {