aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFindAndPlaceGlyph.h
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-11-12 08:53:42 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-12 08:53:42 -0800
commit386127f1d431ef64bf655f39994f17daadfb5269 (patch)
tree13f7460fb746988b559bed3b790c723b4839feb9 /src/core/SkFindAndPlaceGlyph.h
parentd7b25c734e6835152451fbe2ff3b809c5006ad51 (diff)
Increment text pointer when the width is zero in the subpixel with center and right alignment.
Diffstat (limited to 'src/core/SkFindAndPlaceGlyph.h')
-rw-r--r--src/core/SkFindAndPlaceGlyph.h2
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;
}