Use static cast in sch_view since type has been checked
This commit is contained in:
parent
b445ce6632
commit
cd0d92956b
|
@ -140,7 +140,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
|
||||||
if( item.Type() != LIB_FIELD_T )
|
if( item.Type() != LIB_FIELD_T )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
LIB_FIELD* field = dynamic_cast< LIB_FIELD* >( &item );
|
LIB_FIELD* field = static_cast< LIB_FIELD* >( &item );
|
||||||
|
|
||||||
if( field->GetId() < MANDATORY_FIELDS )
|
if( field->GetId() < MANDATORY_FIELDS )
|
||||||
Add( &item );
|
Add( &item );
|
||||||
|
|
Loading…
Reference in New Issue