mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-09 18:03:08 +05:00
Fix of 0022463: [CEA 1044] xao import fails if the path contains some accented characters
This commit is contained in:
parent
53c951cf82
commit
c66c69abfd
@ -193,7 +193,8 @@ bool EntityGUI_PictureImportDlg::execute( ObjectList& objects )
|
|||||||
|
|
||||||
GEOM::GEOM_Object_var aFace = aBlocksOperations->MakeQuad4Vertices(P1,P2,P3,P4);
|
GEOM::GEOM_Object_var aFace = aBlocksOperations->MakeQuad4Vertices(P1,P2,P3,P4);
|
||||||
getDisplayer()->SetDisplayMode(3);
|
getDisplayer()->SetDisplayMode(3);
|
||||||
getDisplayer()->SetTexture(theImgFileName.toStdString());
|
const QByteArray asc = theImgFileName.toUtf8();
|
||||||
|
getDisplayer()->SetTexture( std::string( asc.constData(), asc.length() ) );
|
||||||
|
|
||||||
if ( !aFace->_is_nil() )
|
if ( !aFace->_is_nil() )
|
||||||
{
|
{
|
||||||
|
@ -751,7 +751,7 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
|
|||||||
// Texture from properties
|
// Texture from properties
|
||||||
QString aTexture = propMap.value( GEOM::propertyName( GEOM::Texture ) ).toString();
|
QString aTexture = propMap.value( GEOM::propertyName( GEOM::Texture ) ).toString();
|
||||||
if ( !aTexture.isEmpty() ) {
|
if ( !aTexture.isEmpty() ) {
|
||||||
AISShape->SetTextureFileName( TCollection_AsciiString( aTexture.toStdString().c_str() ) );
|
AISShape->SetTextureFileName( TCollection_AsciiString( aTexture.toUtf8().constData() ) );
|
||||||
textureAdded = true;
|
textureAdded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,7 @@ bool ImportExportGUI_ImportXAODlg::execute()
|
|||||||
GEOM::ListOfFields_var fields;
|
GEOM::ListOfFields_var fields;
|
||||||
|
|
||||||
GEOM::GEOM_IInsertOperations_var ieOp = GEOM::GEOM_IInsertOperations::_narrow(getOperation());
|
GEOM::GEOM_IInsertOperations_var ieOp = GEOM::GEOM_IInsertOperations::_narrow(getOperation());
|
||||||
res = ieOp->ImportXAO(fileName.toStdString().c_str(), shape, subShapes, groups, fields);
|
res = ieOp->ImportXAO(fileName.toUtf8().constData(), shape, subShapes, groups, fields);
|
||||||
|
|
||||||
if (!shape->_is_nil())
|
if (!shape->_is_nil())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user