Don't use iterators with wxDataViewSelection.
They aren't implemented when using wx's homegrown sorted containers and adding support is probably more trouble than it's worth. Fixes #13388. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4429,11 +4429,10 @@ int wxDataViewCtrl::GetSelections( wxDataViewItemArray & sel ) const
|
|||||||
sel.Empty();
|
sel.Empty();
|
||||||
wxDataViewSelection selection = m_clientArea->GetSelections();
|
wxDataViewSelection selection = m_clientArea->GetSelections();
|
||||||
|
|
||||||
for ( wxDataViewSelection::const_iterator i = selection.begin();
|
const size_t len = selection.size();
|
||||||
i != selection.end();
|
for ( size_t i = 0; i < len; i++ )
|
||||||
++i )
|
|
||||||
{
|
{
|
||||||
wxDataViewItem item = m_clientArea->GetItemByRow(*i);
|
wxDataViewItem item = m_clientArea->GetItemByRow(selection[i]);
|
||||||
if ( item.IsOk() )
|
if ( item.IsOk() )
|
||||||
{
|
{
|
||||||
sel.Add(item);
|
sel.Add(item);
|
||||||
|
Reference in New Issue
Block a user