remove duplicate assign of fLastGlyphID

Hal found a brain-dead bug on my part. Thanks Hal!

TBR=halcanary@google.com

Review URL: https://codereview.chromium.org/1176423003
This commit is contained in:
caryclark 2015-06-11 10:09:06 -07:00 committed by Commit bot
parent 6d0d6cbb3e
commit 8d0d2b8577

View File

@ -148,9 +148,8 @@ SkAdvancedTypefaceMetrics* SkTestTypeface::onGetAdvancedTypefaceMetrics(
info->fFontName.set(fTestFont->fName);
info->fType = SkAdvancedTypefaceMetrics::kOther_Font;
info->fFlags = SkAdvancedTypefaceMetrics::kEmpty_FontFlag;
info->fLastGlyphID = static_cast<uint16_t>(fTestFont->fCharCodesCount - 1);
info->fEmSize = 0;
info->fLastGlyphID = SkToU16(onCountGlyphs() - 1);
info->fEmSize = 0;
info->fStyle = 0;
info->fItalicAngle = 0;
info->fAscent = 0;