X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Selection.cxx;h=5a060f295a9e82289ada685df68f8d710ef21a18;hb=c9c6669fab21f2a0d544d79e60ceb119800b4cb5;hp=eb48d8144df29a323679f849edac57a7a6633341;hpb=25cec45acb2923f66c849516f31337c1a3c4c687;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Selection.cxx b/src/SMESHGUI/SMESHGUI_Selection.cxx index eb48d8144..5a060f295 100644 --- a/src/SMESHGUI/SMESHGUI_Selection.cxx +++ b/src/SMESHGUI/SMESHGUI_Selection.cxx @@ -86,9 +86,9 @@ QtxValue SMESHGUI_Selection::param( const int ind, const QString& p ) const else if ( p=="hasReference" ) val = QtxValue( hasReference( ind ) ); else if ( p=="isVisible" ) val = QtxValue( isVisible( ind ) ); -// printf( "--> param() : [%s] = %s (%s)\n", p.latin1(), val.toString().latin1(), val.typeName() ); -// if ( val.type() == QVariant::List ) -// cout << "size: " << val.toList().count() << endl; + // printf( "--> param() : [%s] = %s (%s)\n", p.latin1(), val.toString().latin1(), val.typeName() ); + //if ( val.type() == QVariant::List ) + //cout << "size: " << val.toList().count() << endl; return val; } @@ -102,7 +102,7 @@ SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const if ( ind >= 0 && ind < myDataOwners.count() ) { const SalomeApp_SVTKDataOwner* owner = dynamic_cast ( myDataOwners[ ind ].get() ); - if ( owner ) + if ( owner ) return dynamic_cast( owner->GetActor() ); } return 0;