Closed adevoss closed 4 months ago
Could you please provide a patch how/where you tried to insert a attribute?
Sure. Take #1259 and search for my // TODO
comments.
You should add a new attribute in attr_def.h only at the end of a type. Never somewhere where it causes other attributes of that type to get a new value. As maptool is also using attributes, all maps not created with maptool made from your code might not work anylonger.
You could try building your map using maptool build from your code, or move the new attribute after ATTR(outputdir) and try again (line 415 in your attr_def.h):
ATTR(outputdir)
ATTR(data_tts)
ATTR2(0x0003ffff,type_string_end)
You should add a new attribute in attr_def.h only at the end of a type.
Ah. My first thought was: I can't go wrong when I insert the new attribute data_tts
directly under data
.
I will move the new attribute to the end of the type.
To be clear: I didn't modify the map and/or maptool. Using the same map only changed a .c
file and attr_def.h
.
After I changed attr_def.h
I will update #1259.
Done. Thanks.
To reproduce:
attr_def.h