mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +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);
|
sobj = SMESH::FindSObject (obj);
|
||||||
if ( sobj ) {
|
if ( sobj ) {
|
||||||
std::string name = sobj->GetName();
|
std::string name = sobj->GetName();
|
||||||
myObjNameLineEdit->setText( name.c_str() );
|
myObjNameLineEdit->setText( QString( name.c_str() ).trimmed() );
|
||||||
myObjNameLineEdit->setStyleSheet("");
|
myObjNameLineEdit->setStyleSheet("");
|
||||||
myObjects.push_back( CORBA::Object::_duplicate( obj ));
|
myObjects.push_back( CORBA::Object::_duplicate( obj ));
|
||||||
myParamValue = sobj->GetID().c_str();
|
myParamValue = sobj->GetID().c_str();
|
||||||
@ -241,7 +241,7 @@ void StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(SMESH::string_array_var&
|
|||||||
text += " ";
|
text += " ";
|
||||||
else
|
else
|
||||||
text = "";
|
text = "";
|
||||||
text += name.c_str();
|
text += QString( name.c_str() ).trimmed();
|
||||||
myObjNameLineEdit->setText( text );
|
myObjNameLineEdit->setText( text );
|
||||||
myObjNameLineEdit->setStyleSheet("");
|
myObjNameLineEdit->setStyleSheet("");
|
||||||
myObjects.push_back( anObj );
|
myObjects.push_back( anObj );
|
||||||
|
Loading…
Reference in New Issue
Block a user