new tags are now mapped to their own IDs, not an allocated one
authorkramm <kramm>
Tue, 30 Mar 2004 13:44:11 +0000 (13:44 +0000)
committerkramm <kramm>
Tue, 30 Mar 2004 13:44:11 +0000 (13:44 +0000)
lib/python/taglist.c

index 630fb29..e4eeffc 100644 (file)
@@ -48,7 +48,8 @@ PyObject * taglist_new2(TAG*tag)
        }
        PyList_SET_ITEM(taglist->taglist,nr,newtag);Py_INCREF(newtag);
        if(swf_isDefiningTag(t)) {
-           tagmap_add(taglist->tagmap, newtag);
+           int id = swf_GetDefineID(t);
+           tagmap_addMapping(taglist->tagmap, id, newtag);
        }
        nr++;
        t=t->next;