Chromium Code Reviews| Index: src/core/SkFindAndPlaceGlyph.h |
| diff --git a/src/core/SkFindAndPlaceGlyph.h b/src/core/SkFindAndPlaceGlyph.h |
| index 320caf44f7ca162b7347169df2a33b748a27412f..1dd43a894eee87dbf638207076cedb3f1ec6414d 100644 |
| --- a/src/core/SkFindAndPlaceGlyph.h |
| +++ b/src/core/SkFindAndPlaceGlyph.h |
| @@ -308,6 +308,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; |
| } |