pcbnew: Fix incorrect Type settings
Fixes: lp:1816259 * https://bugs.launchpad.net/kicad/+bug/1816259
This commit is contained in:
parent
3b97961ccb
commit
27b4f2fbe9
|
@ -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 ); }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue