X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Make2DFrom3DOp.cxx;h=3ef76bb2dfee32ea57ae91693bc4a5593bb412a3;hb=4cd2499bddcd3da3ec8900fe825bc98669b789b5;hp=746cc5afdd0c94fb5f1fd4e2d1bf8636fcdbde73;hpb=91c92cb54310225231438b4d3bafeb0d1643a7c0;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx b/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx index 746cc5afd..3ef76bb2d 100644 --- a/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx +++ b/src/SMESHGUI/SMESHGUI_Make2DFrom3DOp.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -217,8 +217,8 @@ void SMESHGUI_Make2DFrom3DDlg::onGroupChecked() SMESHGUI_Make2DFrom3DOp::SMESHGUI_Make2DFrom3DOp() : SMESHGUI_SelectionOp(), - myMeshFilter(MESH), - myGroupFilter(GROUP) + myMeshFilter(SMESH::MESH), + myGroupFilter(SMESH::GROUP) { } @@ -294,6 +294,8 @@ void SMESHGUI_Make2DFrom3DOp::selectionDone() QStringList names, ids; LightApp_Dialog::TypesList types; selected( names, types, ids ); + for ( int i = 0; i < names.count(); ++i ) + names[i] = names[i].trimmed(); myDlg->selectObject( names, types, ids ); // enable/desable "new mesh" button