From 187d7190716af29632dd7ff2bebb83098dc8037b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Jul 2018 15:26:45 +0200 Subject: [PATCH] Update comment in wxListBox::MacHandleSelectionChange() Don't mention GetOldSelection() function that was removed by dde6f662fcf537e6f3efcb309446ce3db9aba32f to avoid confusion. See #15603. --- src/osx/listbox_osx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index ff41b53a37..90fd3338d4 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -436,8 +436,8 @@ void wxListBox::MacHandleSelectionChange(int row) // selection because in wxWidgets API there is no notification event for // removing the selection from a single-selection list box. // - // Otherwise call DoChangeSingleSelection so GetOldSelection() will return - // the correct value if row < 0 later. + // Otherwise call DoChangeSingleSelection so that m_oldSelections is + // updated with the correct value before it's possible used later. const int count = static_cast(GetCount()); if ( row < 0 || row >= count ) {