commit | 938ea62176f435a1d5899499d414d1c1e6705482 | [log] [tgz] |
---|---|---|
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 05 19:44:44 2013 +0000 |
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 05 19:44:44 2013 +0000 |
tree | 62a78594899aa57e1d1db363baf85a6068f1ba2e | |
parent | 5242ed761fc60470f31ffa6ea529c2a2f6afe6f5 [diff] [blame] |
[PDF] Rewind the font stream if font subsetting fails. R=edisonn@google.com Review URL: https://codereview.chromium.org/23654012 git-svn-id: http://skia.googlecode.com/svn/trunk@11116 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index 6f108a8..7d8c286 100644 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp
@@ -582,6 +582,7 @@ *fontStream = subsetFontStream; return fontSize; } + fontData->rewind(); #else sk_ignore_unused_variable(fontName); sk_ignore_unused_variable(subset);