7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

DIALOG_SHAPE_PROPERTIES: fix wxWidgets debug alert.

This commit is contained in:
jean-pierre charras 2025-04-05 18:11:38 +02:00
parent 91d9863cc3
commit 12c82149bf

View File

@ -970,7 +970,8 @@ DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent,
// Used the last saved tab if any
if( s_lastTabForShape.count( m_item->GetShape() ) > 0
&& s_lastTabForShape[m_item->GetShape()] < (int) m_notebookShapeDefs->GetPageCount() )
&& s_lastTabForShape[m_item->GetShape()] < (int) m_notebookShapeDefs->GetPageCount()
&& s_lastTabForShape[m_item->GetShape()] >= 0 )
{
m_notebookShapeDefs->SetSelection( s_lastTabForShape[m_item->GetShape()] );
}