Salome HOME
0021806: [CEA 637] Wrap error message on Mesh Computation Failed Dialog
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Make2DFrom3DOp.cxx
index 746cc5afdd0c94fb5f1fd4e2d1bf8636fcdbde73..8cdc5b0ec3968c2a0f4d7b39e89bc7b1cfcbe425 100644 (file)
@@ -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
@@ -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