Skip to content

Commit

Permalink
Fixed bug where param names specified using a 'defname' tag instead o…
Browse files Browse the repository at this point in the history
…f 'declname' tag
  • Loading branch information
james-strauss-uwa committed Mar 22, 2022
1 parent bc463d0 commit c696a9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/xml2palette/xml2palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,10 @@ def process_compounddef_default(compounddef):
type = gggchild.text
if gggchild.tag == "declname":
name = gggchild.text
if gggchild.tag == "defname":
name = gggchild.text

print("found param:" + str(name) + " " + str(type))
print("found param:" + str(name) + ":" + str(type))
member["params"].append({"key":"aparam/"+str(name), "direction":"in", "value":str(name) + "//" + str(type) + "/readwrite/False//False/"})


Expand All @@ -776,6 +778,7 @@ def setParamDescription(index, description, params):
for p in params:
if "aparam/" in p["key"]:
if count == index:
print(p["key"])
p["value"] = p["value"] + description
break
count = count + 1
Expand Down

0 comments on commit c696a9d

Please sign in to comment.