Bug 380491 Fx randomly fails to display non-BMP ideographs. patch by Masatoshi Kimura (:emk) r+sr=rbs, a=dveditz
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@228376 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1614,6 +1614,7 @@ ReadCMAPTableFormat12(PRUint8* aBuf, PRInt32 len, PRUint32 **aExtMap)
|
||||
aExtMap[plane] = new PRUint32[UCS2_MAP_LEN];
|
||||
if (!aExtMap[plane])
|
||||
return; // i.e., we will only retain the BMP and what we were able to allocate so far
|
||||
memset(aExtMap[plane], 0, sizeof(PRUint32) * UCS2_MAP_LEN);
|
||||
}
|
||||
ADD_GLYPH(aExtMap[plane], c & 0xffff);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user