diff --git a/pcbnew/dialogs/dialog_select_net_from_list.cpp b/pcbnew/dialogs/dialog_select_net_from_list.cpp index 40cdcdfd3b..46c4f5a923 100644 --- a/pcbnew/dialogs/dialog_select_net_from_list.cpp +++ b/pcbnew/dialogs/dialog_select_net_from_list.cpp @@ -109,7 +109,7 @@ DIALOG_SELECT_NET_FROM_LIST::DIALOG_SELECT_NET_FROM_LIST( PCB_EDIT_FRAME* aParen GetSizer()->SetSizeHints( this ); Center(); - m_firstWidth = m_netsListGrid->GetColumnWidth( 0 ); + m_firstWidth = m_netsListGrid->GetColSize( 0 ); setColumnSize(); } @@ -205,8 +205,8 @@ void DIALOG_SELECT_NET_FROM_LIST::setColumnSize() { auto size = m_netsListGrid->GetGridWindow()->GetSize(); - m_netsListGrid->SetColumnWidth( 0, m_firstWidth ); - m_netsListGrid->SetColumnWidth( 1, size.x - m_firstWidth ); + m_netsListGrid->SetColSize( 0, m_firstWidth ); + m_netsListGrid->SetColSize( 1, size.x - m_firstWidth ); } DIALOG_SELECT_NET_FROM_LIST::~DIALOG_SELECT_NET_FROM_LIST() @@ -230,7 +230,7 @@ void DIALOG_SELECT_NET_FROM_LIST::updateSize( wxSizeEvent& event ) void DIALOG_SELECT_NET_FROM_LIST::onColumnResize( wxGridSizeEvent& event ) { - m_firstWidth = m_netsListGrid->GetColumnWidth( 0 ); + m_firstWidth = m_netsListGrid->GetColSize( 0 ); setColumnSize(); }