diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-24 14:10:57 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-24 14:10:57 +0000 |
commit | 48fd50ddd72b7bacb5f058869467795f2feee1f8 (patch) | |
tree | 0ff1d58f7b905ba40dab4a5a6d348d92fa14ab2e /views | |
parent | abf27de148224b3582a0bd8b080dcb95cd946d31 (diff) | |
download | src-48fd50ddd72b7bacb5f058869467795f2feee1f8.tar.gz |
Fix a bug in SkTextBox.
When checking to see if the line of text is beyond the bottom of
the textbox, compare with the bottom, rather than the height (bottom
- top). Prior to this change, text in the bottom of a textbox could
be clipped out.
BUG=https://code.google.com/p/skia/issues/detail?id=1250
Review URL: https://codereview.chromium.org/13856017
git-svn-id: http://skia.googlecode.com/svn/trunk/src@8838 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'views')
-rw-r--r-- | views/SkTextBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/SkTextBox.cpp b/views/SkTextBox.cpp index b5dab09d..b0a42cd7 100644 --- a/views/SkTextBox.cpp +++ b/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; } } |