aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/SkTextBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/SkTextBox.cpp')
-rw-r--r--src/views/SkTextBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/SkTextBox.cpp b/src/views/SkTextBox.cpp
index b5dab09d00..b0a42cd714 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;
}
}