mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 17:15:31 +00:00
EasyEDA Pro schematic: import text with null angle.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19640
This commit is contained in:
parent
3a0df97dbf
commit
d9dcd9e854
@ -533,7 +533,7 @@ SCH_EASYEDAPRO_PARSER::ParseSymbol( const std::vector<nlohmann::json>& aLines,
|
||||
else if( type == wxS( "TEXT" ) )
|
||||
{
|
||||
VECTOR2D pos( line.at( 2 ), line.at( 3 ) );
|
||||
double angle = line.at( 4 );
|
||||
double angle = line.at( 4 ).is_number() ? line.at( 4 ).get<double>() : 0.0;
|
||||
wxString textStr = line.at( 5 );
|
||||
wxString fontStyleStr = line.at( 6 );
|
||||
|
||||
@ -938,7 +938,7 @@ void SCH_EASYEDAPRO_PARSER::ParseSchematic( SCHEMATIC* aSchematic, SCH_SHEET* aR
|
||||
else if( type == wxS( "TEXT" ) )
|
||||
{
|
||||
VECTOR2D pos( line.at( 2 ), line.at( 3 ) );
|
||||
double angle = line.at( 4 );
|
||||
double angle = line.at( 4 ).is_number() ? line.at( 4 ).get<double>() : 0.0;
|
||||
wxString textStr = line.at( 5 );
|
||||
wxString fontStyleStr = line.at( 6 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user