diff options
author | Hal Canary <halcanary@google.com> | 2017-10-18 10:04:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-18 18:41:58 +0000 |
commit | 29ebe7a80d7b8fa0b72d1d1fb5d8ace57a95b961 (patch) | |
tree | 7536855dfebb86d01930adf11822c60470f29896 /src/pdf/SkPDFDevice.cpp | |
parent | a0dc0143f89bf924d0558319dc14b96d73a65c73 (diff) |
SkPDF: TextSize > 0;
BUG=chromium:767343
Change-Id: Ide85e82bfc53ef8cf5fb59d9c7733436f83d7209
Reviewed-on: https://skia-review.googlesource.com/61580
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 123ca4573e..61205ba36d 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1385,7 +1385,7 @@ void SkPDFDevice::internalDrawText( const SkScalar pos[], SkTextBlob::GlyphPositioning positioning, SkPoint offset, const SkPaint& srcPaint, const uint32_t* clusters, uint32_t textByteLength, const char* utf8Text) { - if (0 == sourceByteCount || !sourceText) { + if (0 == sourceByteCount || !sourceText || srcPaint.getTextSize() <= 0) { return; } if (this->cs().isEmpty(this->bounds())) { |