X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/baba4aa5ece7924db50d1cb1390deec695a6b028..2c3ebf8be5f192f23d8266603a72d19a7267c7c5:/wxPython/wx/tools/XRCed/undo.py?ds=inline diff --git a/wxPython/wx/tools/XRCed/undo.py b/wxPython/wx/tools/XRCed/undo.py index ebc0832394..fe0c181739 100644 --- a/wxPython/wx/tools/XRCed/undo.py +++ b/wxPython/wx/tools/XRCed/undo.py @@ -133,7 +133,7 @@ class UndoReplace: xxx = g.tree.GetPyData(item) # Replace with old element parent = xxx.parent.element - if xxx is self.xxx: # sizeritem or notebookpage - replace child + if xxx is self.xxx: # sizeritem or notebookpage - replace child parent.replaceChild(self.xxx.child.element, xxx.child.element) else: parent.replaceChild(self.xxx.element, xxx.element)