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:
parent
bc096dc4ee
commit
074ebe0e2b
|
@ -22,6 +22,7 @@
|
|||
|
||||
find_path( NGSPICE_INCLUDE_DIR ngspice/sharedspice.h
|
||||
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
|
||||
)
|
||||
|
||||
|
|
|
@ -159,6 +159,8 @@ void WS_DATA_MODEL::SaveInString( std::vector<WS_DATA_ITEM*> aItemsList, wxStrin
|
|||
{
|
||||
WS_DATA_MODEL_STRINGIO writer( aOutputString );
|
||||
|
||||
LOCALE_IO toggle; // switch on/off the locale "C" notation
|
||||
|
||||
for( WS_DATA_ITEM* item : aItemsList )
|
||||
writer.Format( this, item, 0 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue