XMLApplication: don't create a new table when a table with that tag already exist in the TTFont object.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@39 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
94940dabb6
commit
1670f7af0e
@ -153,8 +153,11 @@ class XMLApplication(xmlproc.Application):
|
||||
if tableclass is None:
|
||||
from fontTools.ttLib.tables.DefaultTable import DefaultTable
|
||||
tableclass = DefaultTable
|
||||
self.current_table = tableclass(tag)
|
||||
self.ttFont[tag] = self.current_table
|
||||
if self.ttFont.has_key(tag):
|
||||
self.current_table = self.ttFont[tag]
|
||||
else:
|
||||
self.current_table = tableclass(tag)
|
||||
self.ttFont[tag] = self.current_table
|
||||
self.content_stack.append([])
|
||||
elif stacksize == 2:
|
||||
self.content_stack.append([])
|
||||
|
Loading…
x
Reference in New Issue
Block a user