diff options
author | herb <herb@google.com> | 2015-11-12 08:53:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-12 08:53:42 -0800 |
commit | 386127f1d431ef64bf655f39994f17daadfb5269 (patch) | |
tree | 13f7460fb746988b559bed3b790c723b4839feb9 /src/core/SkFindAndPlaceGlyph.h | |
parent | d7b25c734e6835152451fbe2ff3b809c5006ad51 (diff) |
Increment text pointer when the width is zero in the subpixel with center and right alignment.
BUG=skia:
Review URL: https://codereview.chromium.org/1438893002
Diffstat (limited to 'src/core/SkFindAndPlaceGlyph.h')
-rw-r--r-- | src/core/SkFindAndPlaceGlyph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkFindAndPlaceGlyph.h b/src/core/SkFindAndPlaceGlyph.h index 0280e90c82..3de4c61c42 100644 --- a/src/core/SkFindAndPlaceGlyph.h +++ b/src/core/SkFindAndPlaceGlyph.h @@ -293,6 +293,8 @@ private: const SkGlyph &metricGlyph = fGlyphCacheProc(fCache, &tempText, 0, 0); if (metricGlyph.fWidth <= 0) { + // Exiting early, be sure to update text pointer. + *text = tempText; return; } |