mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-13 17:18:36 +05:00
0022804: [CEA 1332] Import a brep file with an accent in its name
This commit is contained in:
parent
3150ecbf3b
commit
fd74c1d7f4
@ -589,9 +589,10 @@ TCollection_AsciiString GEOM_Function::GetString(int thePosition)
|
|||||||
Handle(TDataStd_Comment) aString;
|
Handle(TDataStd_Comment) aString;
|
||||||
TDF_Label anArgLabel = ARGUMENT(thePosition);
|
TDF_Label anArgLabel = ARGUMENT(thePosition);
|
||||||
if(!anArgLabel.FindAttribute(TDataStd_Comment::GetID(), aString)) return aRes;
|
if(!anArgLabel.FindAttribute(TDataStd_Comment::GetID(), aString)) return aRes;
|
||||||
|
char *str = new char[aString->Get().LengthOfCString()+1];
|
||||||
|
aString->Get().ToUTF8CString(str);
|
||||||
|
aRes = TCollection_AsciiString(str);
|
||||||
_isDone = true;
|
_isDone = true;
|
||||||
aRes = TCollection_AsciiString(aString->Get());
|
|
||||||
return aRes;
|
return aRes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +450,7 @@ bool XAOPlugin_ExportDlg::execute()
|
|||||||
// call engine function
|
// call engine function
|
||||||
GEOM::IXAOOperations_var aXAOOp = GEOM::IXAOOperations::_narrow( getOperation() );
|
GEOM::IXAOOperations_var aXAOOp = GEOM::IXAOOperations::_narrow( getOperation() );
|
||||||
res = aXAOOp->ExportXAO(m_mainObj, groups, fields,
|
res = aXAOOp->ExportXAO(m_mainObj, groups, fields,
|
||||||
author.toStdString().c_str(),
|
author.toUtf8().constData(),
|
||||||
fileName.toStdString().c_str());
|
fileName.toUtf8().constData());
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user