From ce2b1afb582f0a2274f476c949cff8b0e1c72b36 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Fri, 18 Feb 2011 13:00:40 +0000 Subject: [PATCH] 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 --- src/core/SkScalerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index f98969c..697917a 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp @@ -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; -- 2.7.4