From 4e9b747e86fa3258852f47a31f8a888090c9a4ac Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 2 Oct 2021 12:39:33 +0100 Subject: [PATCH] Fix wx3.0 (presumably) compile issue. --- common/widgets/lib_tree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/widgets/lib_tree.cpp b/common/widgets/lib_tree.cpp index 16e108c98f..17ccc4917a 100644 --- a/common/widgets/lib_tree.cpp +++ b/common/widgets/lib_tree.cpp @@ -293,7 +293,7 @@ void LIB_TREE::centerIfValid( const wxDataViewItem& aTreeId ) if( idx + 5 < (int) siblings.GetCount() ) { - m_tree_ctrl->EnsureVisible( siblings.at( idx + 5 ) ); + m_tree_ctrl->EnsureVisible( siblings.Item( idx + 5 ) ); } else if( grandParent ) { @@ -303,11 +303,11 @@ void LIB_TREE::centerIfValid( const wxDataViewItem& aTreeId ) int p_idx = parentsSiblings.Index( wxDataViewItem( parent ) ); if( p_idx + 1 < (int) parentsSiblings.GetCount() ) - m_tree_ctrl->EnsureVisible( parentsSiblings.at( p_idx + 1 ) ); + m_tree_ctrl->EnsureVisible( parentsSiblings.Item( p_idx + 1 ) ); } if( idx - 5 >= 0 ) - m_tree_ctrl->EnsureVisible( siblings.at( idx - 5 ) ); + m_tree_ctrl->EnsureVisible( siblings.Item( idx - 5 ) ); else m_tree_ctrl->EnsureVisible( wxDataViewItem( parent ) ); }