pcbnew: Fix incorrect Type settings

Fixes: lp:1816259
* https://bugs.launchpad.net/kicad/+bug/1816259
This commit is contained in:
Seth Hillbrand 2019-02-17 07:46:21 -08:00
parent 3b97961ccb
commit 27b4f2fbe9
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ public:
static inline bool ClassOf( const EDA_ITEM* aItem )
{
return PCB_MODULE_T == aItem->Type();
return aItem && PCB_MODULE_T == aItem->Type();
}
MODULE* Next() const { return static_cast<MODULE*>( Pnext ); }

View File

@ -93,7 +93,7 @@ public:
static inline bool ClassOf( const EDA_ITEM* aItem )
{
return aItem && PCB_T == aItem->Type();
return aItem && PCB_NETINFO_T == aItem->Type();
}
wxString GetClass() const override