Salome HOME
0021327: EDF 1915 SMESH: impossible to select a group to copy mesh
authoreap <eap@opencascade.com>
Tue, 19 Jul 2011 11:27:02 +0000 (11:27 +0000)
committereap <eap@opencascade.com>
Tue, 19 Jul 2011 11:27:02 +0000 (11:27 +0000)
   trim white spaces at end of object name, else the object seems not selected

src/SMESHGUI/SMESHGUI_CopyMeshDlg.cxx

index b4cc800a043d12d71f194f30f2f7e0b8cf411dcf..f873d067f9462c55bf72e9b015a5cb4a28032f1b 100644 (file)
@@ -507,6 +507,7 @@ void SMESHGUI_CopyMeshDlg::SelectionIntoArgument()
   {
     SMESH::GetNameOfSelectedIObjects( mySelectionMgr, aString );
     if ( aString.isEmpty() ) aString = " ";
+    else                     aString = aString.trimmed(); // issue 0021327
   }
   else
   {