Fix compil issue in dialog_select_net_from_list.cpp with wxWidgets 3.1

This commit is contained in:
jean-pierre charras 2018-05-18 10:16:30 +02:00
parent ec98bbba11
commit 2363f36033
1 changed files with 4 additions and 4 deletions

View File

@ -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();
}