From caa3a3beb6fecc37f24a84db0aff765480e6327b Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Fri, 9 Nov 2012 17:07:42 +0000 Subject: When looking for the head table directory entry, compare against the current entry and not the name table entry. git-svn-id: http://skia.googlecode.com/svn/trunk@6368 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/sfnt/SkOTUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sfnt/SkOTUtils.cpp b/src/sfnt/SkOTUtils.cpp index 6e94437e2a..0925d0cda9 100644 --- a/src/sfnt/SkOTUtils.cpp +++ b/src/sfnt/SkOTUtils.cpp @@ -96,7 +96,7 @@ SkData* SkOTUtils::RenameFont(SkStream* fontData, if (oldOffset > oldNameTableOffset) { currentEntry->offset = SkEndian_SwapBE32(oldOffset - oldNameTablePhysicalSize); } - if (SkOTTableHead::TAG == tableEntry.tag) { + if (SkOTTableHead::TAG == currentEntry->tag) { headTableEntry = currentEntry; } } -- cgit v1.2.3