aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-02 21:34:36 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-02 21:34:36 +0000
commita089f03944a23ec753b437a0138f0dc59ab69744 (patch)
treecc37c77bc6ab9a7109b6c58ebef1e84adf2b7c2c
parent5f008652f69ce7809b920b9fa573bc72216acd51 (diff)
Fix 'i-i' to 'i-1' in SkCanvasStack.
Pointed out in http://www.viva64.com/en/b/0225/ . R=djsollen@google.com Review URL: https://codereview.chromium.org/99753002 git-svn-id: http://skia.googlecode.com/svn/trunk@12439 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/utils/SkCanvasStack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkCanvasStack.cpp b/src/utils/SkCanvasStack.cpp
index db5a8b2740..8951149b42 100644
--- a/src/utils/SkCanvasStack.cpp
+++ b/src/utils/SkCanvasStack.cpp
@@ -35,7 +35,7 @@ void SkCanvasStack::pushCanvas(SkCanvas* canvas, const SkIPoint& origin) {
localBounds.offset(origin - fCanvasData[i-1].origin);
fCanvasData[i-1].requiredClip.op(localBounds, SkRegion::kDifference_Op);
- fList[i-i]->clipRegion(fCanvasData[i-1].requiredClip);
+ fList[i-1]->clipRegion(fCanvasData[i-1].requiredClip);
}
}
SkASSERT(fList.count() == fCanvasData.count());