aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-05 17:59:11 +0000
committerGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-05 17:59:11 +0000
commit45be4eb90426e17bde8f36478cc02f076fdc87d9 (patch)
tree193160fc64bb4831904ff68771798ae70da12a77
parent5149bd954b301abb3cb1e6332c5c84a8d3b99681 (diff)
pdfviewer: fix typo
Review URL: https://codereview.chromium.org/22076007 git-svn-id: http://skia.googlecode.com/svn/trunk@10540 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--experimental/PdfViewer/chop_transparency_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/PdfViewer/chop_transparency_main.cpp b/experimental/PdfViewer/chop_transparency_main.cpp
index eab4933efa..c9a199c298 100644
--- a/experimental/PdfViewer/chop_transparency_main.cpp
+++ b/experimental/PdfViewer/chop_transparency_main.cpp
@@ -43,7 +43,7 @@ SkISize opaqueSize(const SkBitmap& bm) {
int width = 1;
int height = 1;
for (int y = 0 ; y < bm.height(); y++) {
- for (int x = 0 ; x < bm.height(); x++) {
+ for (int x = 0 ; x < bm.width(); x++) {
SkColor color = bm.getColor(x, y);
if (SkColorGetA(color) != 0) {
height = y + 1;