mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-21 00:09:42 +05:00
IPAL21434 TC5.1.3 Export creates incorrent shape in .step, .iges formats if "locale" gets different values.
This commit is contained in:
parent
ee74379f54
commit
94006657e9
@ -67,6 +67,10 @@ STEPEXPORT_EXPORT
|
||||
|
||||
try
|
||||
{
|
||||
// Set "C" numeric locale to save numbers correctly
|
||||
std::string aCurLocale = setlocale(LC_NUMERIC, 0);
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
IFSelect_ReturnStatus status ;
|
||||
//VRV: OCC 4.0 migration
|
||||
STEPControl_Writer aWriter;
|
||||
@ -76,7 +80,10 @@ STEPEXPORT_EXPORT
|
||||
status = aWriter.Transfer( theShape, STEPControl_AsIs );
|
||||
//VRV: OCC 4.0 migration
|
||||
if ( status == IFSelect_RetDone )
|
||||
status = aWriter.Write( theFileName.ToCString() ) ;
|
||||
status = aWriter.Write( theFileName.ToCString() );
|
||||
|
||||
// Return previous locale
|
||||
setlocale(LC_NUMERIC, aCurLocale.data());
|
||||
if ( status == IFSelect_RetDone )
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user