1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027880: Samples - fix handling of Unicode paths within MFC import/export sample

This commit is contained in:
kgv
2016-09-19 11:46:27 +03:00
committed by bugmaster
parent b357dcc225
commit e620e2857f
8 changed files with 34 additions and 45 deletions

View File

@@ -143,8 +143,7 @@ Handle(AIS_TexturedShape) TexturesExt_Presentation::Texturize(const TopoDS_Shape
initfile += aTFileName.ToCString();
}
TCollection_ExtendedString aFileName ((Standard_ExtString )(const wchar_t* )initfile);
aTShape->SetTextureFileName (TCollection_AsciiString (aFileName, '?'));
aTShape->SetTextureFileName (TCollection_AsciiString ((const wchar_t* )initfile));
// do other initialization of AIS_TexturedShape
aTShape->SetTextureMapOn();