eeschema segfault when a library "T" command is missing Halign Valign values
Fixes: lp:1668082 https://bugs.launchpad.net/kicad/+bug/1668082
This commit is contained in:
parent
f35cb6cd6a
commit
64d6c3f91c
|
@ -2905,6 +2905,9 @@ LIB_TEXT* SCH_LEGACY_PLUGIN_CACHE::loadText( std::unique_ptr< LIB_PART >& aPart,
|
|||
if( parseInt( aReader, line, &line ) > 0 )
|
||||
text->SetBold( true );
|
||||
|
||||
// Some old libaries version > 2.0 do not have these options for text justification:
|
||||
if( !is_eol( *line ) )
|
||||
{
|
||||
switch( parseChar( aReader, line, &line ) )
|
||||
{
|
||||
case 'L':
|
||||
|
@ -2943,6 +2946,7 @@ LIB_TEXT* SCH_LEGACY_PLUGIN_CACHE::loadText( std::unique_ptr< LIB_PART >& aPart,
|
|||
aReader, line );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return text.release();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue