mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0028353: Samples - IESample cannot write files to paths with special characters
Changed charcode conversion to UTF-8.
This commit is contained in:
@@ -128,7 +128,9 @@ void MDIWindow::dump()
|
||||
if ( !QFileInfo( file ).completeSuffix().length() )
|
||||
file += QString( ".bmp" );
|
||||
|
||||
bool res = myView->dump( (Standard_CString)file.toLatin1().constData() );
|
||||
const TCollection_AsciiString anUtf8Path (file.toUtf8().data());
|
||||
|
||||
bool res = myView->dump( anUtf8Path.ToCString() );
|
||||
QApplication::restoreOverrideCursor();
|
||||
if ( !res )
|
||||
{
|
||||
|
Reference in New Issue
Block a user