mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
Fix for the "0022421: EDF 2805 GEOM: Save in a repertory with an accent fails" issue.
This commit is contained in:
parent
0a5ebce687
commit
9c631c67b1
@ -725,8 +725,8 @@ bool GEOMToolsGUI::Import()
|
|||||||
app->putInfo( tr( "GEOM_PRP_LOADING" ).arg( SUIT_Tools::file( fileName, /*withExten=*/true ) ) );
|
app->putInfo( tr( "GEOM_PRP_LOADING" ).arg( SUIT_Tools::file( fileName, /*withExten=*/true ) ) );
|
||||||
anOp->start();
|
anOp->start();
|
||||||
|
|
||||||
CORBA::String_var fileN = fileName.toLatin1().constData();
|
CORBA::String_var fileN = fileName.toUtf8().constData();
|
||||||
CORBA::String_var fileT = aCurrentType.toLatin1().constData();
|
CORBA::String_var fileT = aCurrentType.toUtf8().constData();
|
||||||
|
|
||||||
// jfa 21.08.2012 for mantis issue 21511 (STEP file units)
|
// jfa 21.08.2012 for mantis issue 21511 (STEP file units)
|
||||||
CORBA::String_var aUnits = aInsOp->ReadValue(fileN, fileT, "LEN_UNITS");
|
CORBA::String_var aUnits = aInsOp->ReadValue(fileN, fileT, "LEN_UNITS");
|
||||||
@ -945,7 +945,7 @@ bool GEOMToolsGUI::Export()
|
|||||||
|
|
||||||
anOp->start();
|
anOp->start();
|
||||||
|
|
||||||
aInsOp->Export( anObj, file.toStdString().c_str(), fileType.toLatin1().constData() );
|
aInsOp->Export( anObj, file.toUtf8().constData(), fileType.toUtf8().constData() );
|
||||||
|
|
||||||
if (aInsOp->IsDone())
|
if (aInsOp->IsDone())
|
||||||
anOp->commit();
|
anOp->commit();
|
||||||
|
Loading…
Reference in New Issue
Block a user