Pl_editor: fix missing switch to "C" locale when saving selected items in clipboard.

It was only noticeable in countries using a comma as floating point separator.

Fixes: lp:1832211
https://bugs.launchpad.net/kicad/+bug/1832211
This commit is contained in:
jean-pierre charras 2019-06-10 11:55:52 +02:00
parent bc096dc4ee
commit 074ebe0e2b
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@
find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h
PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_INCLUDE_PATH} PATHS ${NGSPICE_ROOT_DIR} $ENV{NGSPICE_ROOT_DIR} ${NGSPICE_INCLUDE_PATH}
${NGSPICE_ROOT_DIR}/include
PATH_SUFFIXES src/include share/ngspice/include share/ngspice/include/ngspice PATH_SUFFIXES src/include share/ngspice/include share/ngspice/include/ngspice
) )

View File

@ -159,6 +159,8 @@ void WS_DATA_MODEL::SaveInString( std::vector<WS_DATA_ITEM*> aItemsList, wxStrin
{ {
WS_DATA_MODEL_STRINGIO writer( aOutputString ); WS_DATA_MODEL_STRINGIO writer( aOutputString );
LOCALE_IO toggle; // switch on/off the locale "C" notation
for( WS_DATA_ITEM* item : aItemsList ) for( WS_DATA_ITEM* item : aItemsList )
writer.Format( this, item, 0 ); writer.Format( this, item, 0 );
} }