[Bojangles-cvs] cvs: bojangles /xml XmlHandler.java
Status: Alpha
Brought to you by:
nehresma
From: nehresma <boj...@li...> - 2002-08-11 23:40:49
|
nehresma Sun Aug 11 16:40:48 2002 EDT Modified files: /bojangles/xml XmlHandler.java Log: fixed a bug when changing the name of a widget. i was using the wrong path in the XML document. Index: bojangles/xml/XmlHandler.java diff -u bojangles/xml/XmlHandler.java:1.4 bojangles/xml/XmlHandler.java:1.5 --- bojangles/xml/XmlHandler.java:1.4 Thu Aug 8 18:00:53 2002 +++ bojangles/xml/XmlHandler.java Sun Aug 11 16:40:48 2002 @@ -104,7 +104,11 @@ n.setName(name); if (null != text) n.setText(text); - notifyListeners(MODIFY, path); + + if (newPath.equals(path)) + notifyListeners(MODIFY, path); + else + notifyListeners(MODIFY, newPath); } return newPath; } |