mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix initialisation order issue in PANEL_SETUP_NETCLASSES.
This commit is contained in:
parent
09511d176c
commit
3da2f79d0e
@ -686,10 +686,14 @@ void PANEL_SETUP_NETCLASSES::OnUpdateUI( wxUpdateUIEvent& event )
|
||||
m_netclassesDirty = false;
|
||||
}
|
||||
|
||||
wxString pattern;
|
||||
int row = m_assignmentGrid->GetGridCursorRow();
|
||||
wxString pattern = m_assignmentGrid->GetCellValue( row, 0 );
|
||||
int col = m_assignmentGrid->GetGridCursorCol();
|
||||
|
||||
if( m_assignmentGrid->GetGridCursorCol() == 0 && m_assignmentGrid->IsCellEditControlShown() )
|
||||
if( row >=0 )
|
||||
pattern = m_assignmentGrid->GetCellValue( row, 0 );
|
||||
|
||||
if( col == 0 && m_assignmentGrid->IsCellEditControlShown() )
|
||||
{
|
||||
wxGridCellEditor* cellEditor = m_assignmentGrid->GetCellEditor( row, 0 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user