mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 11:11:41 +00:00
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 )
|
||||
continue;
|
||||
|
||||
LIB_FIELD* field = dynamic_cast< LIB_FIELD* >( &item );
|
||||
LIB_FIELD* field = static_cast< LIB_FIELD* >( &item );
|
||||
|
||||
if( field->GetId() < MANDATORY_FIELDS )
|
||||
Add( &item );
|
||||
|
Loading…
Reference in New Issue
Block a user