Fix compil issue in dialog_select_net_from_list.cpp with wxWidgets 3.1
This commit is contained in:
parent
ec98bbba11
commit
2363f36033
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue