From: eap Date: Wed, 19 Feb 2014 13:15:16 +0000 (+0400) Subject: Fix strange string like "1 , 1 , 1 " instead of nb of selected geom objects at mesh... X-Git-Tag: V7_4_0a1~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a30b3a5fbf4d4fc4a9e86ed6d0ad5435cd931c52;p=modules%2Fsmesh.git Fix strange string like "1 , 1 , 1 " instead of nb of selected geom objects at mesh creation --- diff --git a/src/SMESHGUI/SMESHGUI_SelectionOp.cxx b/src/SMESHGUI/SMESHGUI_SelectionOp.cxx index ce349a055..a134a58f2 100644 --- a/src/SMESHGUI/SMESHGUI_SelectionOp.cxx +++ b/src/SMESHGUI/SMESHGUI_SelectionOp.cxx @@ -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( 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