# HG changeset patch # User laurent # Date 1260176245 -3600 # Node ID cc64bbb1d6549b73fd79d9fda0c2530ff6daea22 # Parent 17411b970353457b9a4a374942e310518e4736b2 Bug on updateElementName fixed diff -r 17411b970353 -r cc64bbb1d654 plcopen/plcopen.py --- a/plcopen/plcopen.py Sun Dec 06 21:20:55 2009 +0100 +++ b/plcopen/plcopen.py Mon Dec 07 09:57:25 2009 +0100 @@ -734,7 +734,7 @@ for var in varlist.getvariable(): var_address = var.getaddress() if var_address is not None: - if var_address == oldname: + if var_address == old_name: var.setaddress(new_name) if var.getname() == old_name: var.setname(new_name) @@ -778,7 +778,7 @@ for var in varlist.getvariable(): var_address = var.getaddress() if var_address is not None: - if var_address == oldname: + if var_address == old_name: var.setaddress(new_name) if var.getname() == old_name: var.setname(new_name) @@ -1219,7 +1219,7 @@ for var in content["value"].getvariable(): var_address = var.getaddress() if var_address is not None: - if var_address == oldname: + if var_address == old_name: var.setaddress(new_name) if var.getname() == old_name: var.setname(new_name)