Fixed a crash when adding/removing pads

Fixes: lp:1627296
* https://bugs.launchpad.net/kicad/+bug/1627296
This commit is contained in:
Maciej Suminski 2016-09-27 09:28:39 +02:00
parent 451cbedd2c
commit f2462925ec
1 changed files with 2 additions and 2 deletions

View File

@ -1077,7 +1077,7 @@ bool RN_DATA::Add( const BOARD_ITEM* aItem )
if( net <= NETINFO_LIST::ORPHANED ) if( net <= NETINFO_LIST::ORPHANED )
continue; continue;
m_nets[net].AddItem( pad ); Add( pad );
} }
return true; return true;
@ -1149,7 +1149,7 @@ bool RN_DATA::Remove( const BOARD_ITEM* aItem )
if( net <= NETINFO_LIST::ORPHANED ) if( net <= NETINFO_LIST::ORPHANED )
continue; continue;
m_nets[net].RemoveItem( pad ); Remove( pad );
} }
return true; return true;