mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix crash with empty grid setting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21479
This commit is contained in:
parent
4ac43a212e
commit
dafc9dd05a
@ -118,6 +118,13 @@ DIALOG_BOARD_REANNOTATE::DIALOG_BOARD_REANNOTATE( PCB_EDIT_FRAME* aParentFrame )
|
||||
|
||||
m_GridChoice->Set( gridslist );
|
||||
|
||||
int gridIndex = m_frame->config()->m_Window.grid.last_size_idx;
|
||||
|
||||
if( gridIndex >= 0 && gridIndex < (int) m_GridChoice->GetCount() )
|
||||
m_GridChoice->SetSelection( gridIndex );
|
||||
else
|
||||
m_GridChoice->SetSelection( 0 );
|
||||
|
||||
m_ExcludeList->SetToolTip( m_ExcludeListText->GetToolTipText() );
|
||||
m_GridChoice->SetToolTip( m_SortGridText->GetToolTipText() );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user