Index: src/views/SkTextBox.cpp |
diff --git a/src/views/SkTextBox.cpp b/src/views/SkTextBox.cpp |
index b5dab09d00b3fa886d1d4bea37b7ccd64f9a51a2..b0a42cd714c7e6b506dec1bb292962e63b2354e3 100644 |
--- a/src/views/SkTextBox.cpp |
+++ b/src/views/SkTextBox.cpp |
@@ -232,7 +232,7 @@ void SkTextBox::draw(SkCanvas* canvas, const char text[], size_t len, const SkPa |
if (text >= textStop) |
break; |
y += scaledSpacing; |
- if (y + metrics.fAscent >= height) |
+ if (y + metrics.fAscent >= fBox.fBottom) |
break; |
} |
} |