From: dmv Date: Thu, 22 May 2008 08:24:24 +0000 (+0000) Subject: Bug #: NPAL19561 Strip extra spaces from groups popup menu in VISU X-Git-Tag: TG_ELNO_visualization_28May2008~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=781c082d126c1435d6e599a8a9677693ed9f6238;p=modules%2Fvisu.git Bug #: NPAL19561 Strip extra spaces from groups popup menu in VISU --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index cad01670..43648822 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2850,8 +2850,12 @@ void VisuGUI::contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, Q if ( !aSObject ) continue; - if ( !isOBClient ) - theTitle = QString( aSObject->GetName().c_str() ); + if ( !isOBClient ) { + QString aName = QString( aSObject->GetName().c_str() ); + while ( aName.at( aName.length() - 1 ) == ' ' ) // Remove extraspaces in Name of popup + aName.remove( (aName.length() - 1), 1 ); + theTitle = aName; + } CORBA::Object_var aCORBAObject = VISU::ClientSObjectToObject(aSObject); if (CORBA::is_nil(aCORBAObject)) {