diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-09 17:07:42 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-09 17:07:42 +0000 |
commit | caa3a3beb6fecc37f24a84db0aff765480e6327b (patch) | |
tree | 5d3daffa3cba1d35bd52317116ae7efb9a52dfa7 /src/sfnt | |
parent | ce7ffaccc4a0cd0e0285cdba25bddb627f8e92c4 (diff) |
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
Diffstat (limited to 'src/sfnt')
-rw-r--r-- | src/sfnt/SkOTUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |