X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/baba4aa5ece7924db50d1cb1390deec695a6b028..716a5baa6ecd0d5d0c31914567e4da3165ca6ff0:/wxPython/wx/tools/XRCed/undo.py 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)