[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
This commit is contained in:
vandebo@chromium.org 2013-09-05 19:44:44 +00:00
parent 5242ed761f
commit 938ea62176

View File

@ -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);