Formatting.

This commit is contained in:
Jeff Young 2023-07-07 22:42:29 +01:00
parent 9d9344a815
commit dc838bc50f
2 changed files with 14 additions and 5 deletions

View File

@ -28,13 +28,17 @@
#include <i18n_utility.h> #include <i18n_utility.h>
PCB_FIELD::PCB_FIELD( FOOTPRINT* aParent, int aFieldId, const wxString& aName ) : PCB_FIELD::PCB_FIELD( FOOTPRINT* aParent, int aFieldId, const wxString& aName ) :
PCB_TEXT( aParent, PCB_FIELD_T ), m_id( aFieldId ), m_name( aName ) PCB_TEXT( aParent, PCB_FIELD_T ),
m_id( aFieldId ),
m_name( aName )
{ {
} }
PCB_FIELD::PCB_FIELD( const PCB_TEXT& aText, int aFieldId, const wxString& aName ) : PCB_FIELD::PCB_FIELD( const PCB_TEXT& aText, int aFieldId, const wxString& aName ) :
PCB_TEXT( aText ), m_id( aFieldId ), m_name( aName ) PCB_TEXT( aText ),
m_id( aFieldId ),
m_name( aName )
{ {
} }
@ -130,6 +134,7 @@ wxString PCB_FIELD::GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const
return wxEmptyString; return wxEmptyString;
} }
double PCB_FIELD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const double PCB_FIELD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
{ {
constexpr double HIDE = std::numeric_limits<double>::max(); constexpr double HIDE = std::numeric_limits<double>::max();

View File

@ -3089,9 +3089,9 @@ void PCB_PARSER::parsePCB_TEXT_effects( PCB_TEXT* aText )
if( (int) token != DSN_RIGHT ) if( (int) token != DSN_RIGHT )
Expecting( DSN_RIGHT ); Expecting( DSN_RIGHT );
}
break; break;
}
case T_layer: case T_layer:
aText->SetLayer( parseBoardItemLayer() ); aText->SetLayer( parseBoardItemLayer() );
@ -3123,9 +3123,13 @@ void PCB_PARSER::parsePCB_TEXT_effects( PCB_TEXT* aText )
break; break;
case T_effects: parseEDA_TEXT( static_cast<EDA_TEXT*>( aText ) ); break; case T_effects:
parseEDA_TEXT( static_cast<EDA_TEXT*>( aText ) );
break;
case T_render_cache: parseRenderCache( static_cast<EDA_TEXT*>( aText ) ); break; case T_render_cache:
parseRenderCache( static_cast<EDA_TEXT*>( aText ) );
break;
default: default:
if( parentFP ) if( parentFP )