diff --git a/CHANGES.rst b/CHANGES.rst index 5f80bb96..5ca6a47d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -130,8 +130,11 @@ Changes in this release include the following: an AuiToolBar would not be updated when calling LoadPerspective. (#917) * Fixed a bug in wx.FileSystemHandler.OpenFile where the object ownership was - not being transferred corrcetly, causing a crash after a premature object + not being transferred correctly, causing a crash after a premature object deletion. (#926) + +* Fixed wx.ListCtrl.Append when wx.LC_SORT style is used, so appending items out + of order does not lose the data for the remaining columns. (#906) diff --git a/etg/listctrl.py b/etg/listctrl.py index 36672797..ab0de8d7 100644 --- a/etg/listctrl.py +++ b/etg/listctrl.py @@ -314,8 +314,7 @@ def run(): body="""\ if len(entry): from six import text_type - pos = self.GetItemCount() - self.InsertItem(pos, text_type(entry[0])) + pos = self.InsertItem(self.GetItemCount(), text_type(entry[0])) for i in range(1, len(entry)): self.SetItem(pos, i, text_type(entry[i])) return pos