mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-20 23:59:42 +05:00
0020555: EDF GEOM: MakeSketcher and localisation
This commit is contained in:
parent
60b554175f
commit
f82f2f5a2a
@ -78,9 +78,16 @@ Standard_Integer GEOMImpl_SketcherDriver::Execute(TFunction_Logbook& log) const
|
||||
|
||||
TopoDS_Shape aShape;
|
||||
|
||||
// Set "C" numeric locale to save numbers correctly
|
||||
std::string aCurLocale = setlocale(LC_NUMERIC, 0);
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
// create sketcher
|
||||
Sketcher_Profile aProfile (aCommand.ToCString());
|
||||
|
||||
// Return previous locale
|
||||
setlocale(LC_NUMERIC, aCurLocale.data());
|
||||
|
||||
if (!aProfile.IsDone()) {
|
||||
Standard_ConstructionError::Raise("Sketcher creation failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user