fix index-out-of-range constant
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Nov 2009 21:41:57 +0000 (21:41 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Nov 2009 21:41:57 +0000 (21:41 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@437 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkEdgeClipper.cpp

index 7c82d2250f73cd448128465032ab9ef0660788f2..dc136a6b569ae17c23b325bfd0242e3d22e7cc7c 100644 (file)
@@ -186,7 +186,7 @@ void SkEdgeClipper::clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) {
         } else {
             // if chopMonoQuadAtY failed, then we may have hit inexact numerics
             // so we just clamp against the right
-            this->appendVLine(clip.fRight, pts[0].fY, pts[3].fY, reverse);
+            this->appendVLine(clip.fRight, pts[0].fY, pts[2].fY, reverse);
         }
     } else {    // wholly inside the clip
         this->appendQuad(pts, reverse);