mirror of https://gitlab.com/kicad/code/kicad.git
INSPECTABLE: minor bugfix
This commit is contained in:
parent
c897273f11
commit
d2c9ccd3fe
|
@ -95,7 +95,7 @@ public:
|
||||||
PROPERTY_MANAGER& propMgr = PROPERTY_MANAGER::Instance();
|
PROPERTY_MANAGER& propMgr = PROPERTY_MANAGER::Instance();
|
||||||
TYPE_ID thisType = TYPE_HASH( *this );
|
TYPE_ID thisType = TYPE_HASH( *this );
|
||||||
void* object = propMgr.TypeCast( this, thisType, aProperty->OwnerHash() );
|
void* object = propMgr.TypeCast( this, thisType, aProperty->OwnerHash() );
|
||||||
return object ? aProperty->get<T>( object ) : wxAny();
|
return object ? aProperty->get<T>( object ) : T();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in New Issue