Salome HOME
Fix strange string like "1 , 1 , 1 " instead of nb of selected geom objects at mesh...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SelectionOp.cxx
index ce349a055b67c6833ce83d28e6694e2c6e38d076..a134a58f247be98f3fd5c9620962d68f06f50629 100644 (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