fix compile-error, mismatch between fontID and id
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Feb 2011 17:02:29 +0000 (17:02 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Feb 2011 17:02:29 +0000 (17:02 +0000)
http://code.google.com/p/skia/issues/detail?id=149

git-svn-id: http://skia.googlecode.com/svn/trunk@787 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontHost_fontconfig.cpp

index d1da8d1..21fc773 100644 (file)
@@ -337,8 +337,8 @@ SkStream* SkFontHost::OpenStream(uint32_t id)
 size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length,
                                int32_t* index) {
     SkAutoMutexAcquire ac(global_fc_map_lock);
-    const unsigned fileid = UniqueIdToFileId(id);
-    
+    const unsigned fileid = UniqueIdToFileId(fontID);
+
     std::map<unsigned, std::string>::const_iterator i =
     global_fc_map_inverted.find(fileid);
     if (i == global_fc_map_inverted.end()) {