fix bug in ElementModel.Element.setProperty

This commit is contained in:
Grahame Grieve 2020-04-05 20:33:32 +10:00
parent 830afa4087
commit 12b2011a63
1 changed files with 2 additions and 2 deletions

View File

@ -364,8 +364,8 @@ public class Element extends Base {
if (p.getName().equals(e.getName()))
t = c;
}
if (t > i)
i = t;
if (t >= i)
i = t+1;
if (p.getName().equals(name) || p.getName().equals(name+"[x]")) {
Element ne = new Element(name, p);
children.add(i, ne);