mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
strip trailing white spaces of the object name
This commit is contained in:
parent
418c46e962
commit
77ea3f0fc9
@ -206,7 +206,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObject(CORBA::Object_ptr obj)
|
||||
sobj = SMESH::FindSObject (obj);
|
||||
if ( sobj ) {
|
||||
std::string name = sobj->GetName();
|
||||
myObjNameLineEdit->setText( name.c_str() );
|
||||
myObjNameLineEdit->setText( QString( name.c_str() ).trimmed() );
|
||||
myObjNameLineEdit->setStyleSheet("");
|
||||
myObjects.push_back( CORBA::Object::_duplicate( obj ));
|
||||
myParamValue = sobj->GetID().c_str();
|
||||
@ -241,7 +241,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(SMESH::string_array_var&
|
||||
text += " ";
|
||||
else
|
||||
text = "";
|
||||
text += name.c_str();
|
||||
text += QString( name.c_str() ).trimmed();
|
||||
myObjNameLineEdit->setText( text );
|
||||
myObjNameLineEdit->setStyleSheet("");
|
||||
myObjects.push_back( anObj );
|
||||
|
Loading…
Reference in New Issue
Block a user