X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEntityGUI%2FEntityGUI_PictureImportDlg.cxx;h=5a7fe60ae39196ee0b8575b3f8aafe738b7133e9;hb=3cd92817cb4c5ee5911d6f40fe977b5e57b980e1;hp=3e521dfdbdffde7f3f9536ee942e4a4acd7d1ae5;hpb=bb545186fa0ae02fa021337e6ecbedaba96e620e;p=modules%2Fgeom.git diff --git a/src/EntityGUI/EntityGUI_PictureImportDlg.cxx b/src/EntityGUI/EntityGUI_PictureImportDlg.cxx old mode 100644 new mode 100755 index 3e521dfdb..5a7fe60ae --- a/src/EntityGUI/EntityGUI_PictureImportDlg.cxx +++ b/src/EntityGUI/EntityGUI_PictureImportDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -193,7 +193,8 @@ bool EntityGUI_PictureImportDlg::execute( ObjectList& objects ) GEOM::GEOM_Object_var aFace = aBlocksOperations->MakeQuad4Vertices(P1,P2,P3,P4); getDisplayer()->SetDisplayMode(3); - getDisplayer()->SetTexture(theImgFileName.toStdString()); + const QByteArray asc = theImgFileName.toUtf8(); + getDisplayer()->SetTexture( std::string( asc.constData(), asc.length() ) ); if ( !aFace->_is_nil() ) {