Fix off-by-one error when creating user-defined signals.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15970
This commit is contained in:
parent
c1f01877a8
commit
708b42ea69
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue