Eeschema: fix copy and paste issue when non-C locales are involved.

Fixes https://gitlab.com/kicad/code/kicad/issues/4449
This commit is contained in:
Wayne Stambaugh 2020-05-18 15:47:19 -04:00
parent cec857c0f4
commit ad6857f131
1 changed files with 3 additions and 0 deletions

View File

@ -779,6 +779,8 @@ void SCH_SEXPR_PLUGIN::Format( EE_SELECTION* aSelection, OUTPUTFORMATTER* aForma
{
wxCHECK( aSelection && aFormatter, /* void */ );
LOCALE_IO toggle;
m_out = aFormatter;
size_t i;
@ -2342,6 +2344,7 @@ LIB_PART* SCH_SEXPR_PLUGIN::ParsePart( LINE_READER& aReader, int aFileVersion )
void SCH_SEXPR_PLUGIN::FormatPart( LIB_PART* part, OUTPUTFORMATTER & formatter )
{
SCH_SEXPR_PLUGIN_CACHE::SaveSymbol( part, formatter );
}