Salome HOME
Unicode support
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewWindow.cxx
index c090f4ac49f686f004abcdfc5c8d3e89f504e2e0..7c9cb3e878871201ba6bbf5280d41ae3ca15696e 100644 (file)
@@ -2324,7 +2324,7 @@ bool OCCViewer_ViewWindow::dumpViewToFormat( const QImage& img,
     OpenGl_Caps* aCaps = &aDriver->ChangeOptions();
     int prev = aCaps->ffpEnable;
     aCaps->ffpEnable = 1;
-    res = a3dView->Export(strdup(qPrintable(fileName)), Graphic3d_EF_PostScript);
+    res = a3dView->Export(strdup(qUtf8Printable(fileName)), Graphic3d_EF_PostScript);
     aCaps->ffpEnable = prev;
   }
   else if (format == "EPS") {
@@ -2332,7 +2332,7 @@ bool OCCViewer_ViewWindow::dumpViewToFormat( const QImage& img,
     OpenGl_Caps* aCaps = &aDriver->ChangeOptions();
     int prev = aCaps->ffpEnable;
     aCaps->ffpEnable = 1;
-    res = a3dView->Export(strdup(qPrintable(fileName)), Graphic3d_EF_EnhPostScript);
+    res = a3dView->Export(strdup(qUtf8Printable(fileName)), Graphic3d_EF_EnhPostScript);
     aCaps->ffpEnable = prev;
   }
   else {