Fix strange string like "1 , 1 , 1 " instead of nb of selected geom objects at mesh creation

This commit is contained in:
eap 2014-02-19 17:15:16 +04:00
parent 6e68fcd497
commit a30b3a5fbf

View File

@ -318,7 +318,9 @@ int SMESHGUI_SelectionOp::typeById( const QString& str, const EntityType objtype
GEOM::GEOM_Object_var obj = GEOM::GEOM_Object::_narrow(
dynamic_cast<SALOMEDS_SObject*>( sobj.get() )->GetObject() );
if( !CORBA::is_nil( obj ) )
res = SMESHGUI_Dialog::prefix( "GEOM" ) + obj->GetType();
// as decoding of type id is not realized in LightApp_Dialog,
//make all GEOM objects have same type id
res = SMESHGUI_Dialog::prefix( "GEOM" );// + obj->GetType();
}
}
else