Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Unified Diff: src/views/SkTextBox.cpp

Issue 13856017: Fix a bug in SkTextBox. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698