call glyph::init() on tmpGlyph, so we have a properly initialized fMaskFormat

git-svn-id: http://skia.googlecode.com/svn/trunk@812 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-02-18 13:00:40 +00:00
parent 40981ba42a
commit ce2b1afb58

View File

@ -383,7 +383,7 @@ void SkScalerContext::getImage(const SkGlyph& origGlyph) {
SkGlyph tmpGlyph;
if (fMaskFilter) { // restore the prefilter bounds
tmpGlyph.fID = origGlyph.fID;
tmpGlyph.init(origGlyph.fID);
// need the original bounds, sans our maskfilter
SkMaskFilter* mf = fMaskFilter;