aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScalerContext.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-18 13:00:40 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-02-18 13:00:40 +0000
commitce2b1afb582f0a2274f476c949cff8b0e1c72b36 (patch)
tree7873d1f6b24f4f061d97d3c99bd0d802e102952b /src/core/SkScalerContext.cpp
parent40981ba42a479d9f8dc99dc048683343177829d0 (diff)
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
Diffstat (limited to 'src/core/SkScalerContext.cpp')
-rw-r--r--src/core/SkScalerContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp
index f98969cec5..697917ab04 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;