Fix off-by-one error when creating user-defined signals.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15970
This commit is contained in:
Jeff Young 2023-10-28 13:27:26 +01:00
parent c1f01877a8
commit 708b42ea69
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ void DIALOG_USER_DEFINED_SIGNALS::onAddSignal( wxCommandEvent& event )
long usedId;
m_grid->GetCellValue( ii, 1 ).ToLong( &usedId );
if( usedId > newId )
if( usedId >= newId )
newId = usedId + 1;
}