diff --git a/eeschema/sch_view.cpp b/eeschema/sch_view.cpp index c4f2898b94..e426791e42 100644 --- a/eeschema/sch_view.cpp +++ b/eeschema/sch_view.cpp @@ -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 );