diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-05 19:44:44 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-05 19:44:44 +0000 |
commit | 938ea62176f435a1d5899499d414d1c1e6705482 (patch) | |
tree | 62a78594899aa57e1d1db363baf85a6068f1ba2e /src/pdf | |
parent | 5242ed761fc60470f31ffa6ea529c2a2f6afe6f5 (diff) |
[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
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFFont.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index 6f108a8c79..7d8c286e2e 100644 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp @@ -582,6 +582,7 @@ static int get_subset_font_stream(const char* fontName, *fontStream = subsetFontStream; return fontSize; } + fontData->rewind(); #else sk_ignore_unused_variable(fontName); sk_ignore_unused_variable(subset); |