From 938ea62176f435a1d5899499d414d1c1e6705482 Mon Sep 17 00:00:00 2001 From: "vandebo@chromium.org" Date: Thu, 5 Sep 2013 19:44:44 +0000 Subject: [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 --- src/pdf/SkPDFFont.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pdf') 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); -- cgit v1.2.3