From: ana Date: Mon, 17 Jan 2011 10:34:09 +0000 (+0000) Subject: Fix for the bug IPAL12291: 3x REGR: 3D selection disappears in VTK if to display... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_WIN_INDUS_514;p=modules%2Fgui.git Fix for the bug IPAL12291: 3x REGR: 3D selection disappears in VTK if to display a geometrical shape in Mesh. --- diff --git a/src/LightApp/LightApp_ShowHideOp.cxx b/src/LightApp/LightApp_ShowHideOp.cxx index d2d3608d9..c6c214df6 100644 --- a/src/LightApp/LightApp_ShowHideOp.cxx +++ b/src/LightApp/LightApp_ShowHideOp.cxx @@ -146,8 +146,10 @@ void LightApp_ShowHideOp::startOperation() for( QStringList::const_iterator it = entries.begin(), last = entries.end(); it!=last; it++ ) { QString e = study->referencedToEntry( *it ); - if( myActionType==DISPLAY || myActionType==DISPLAY_ONLY ) + if( myActionType==DISPLAY || myActionType==DISPLAY_ONLY ) { d->Display( e, false, 0 ); + mgr->setSelectedObjects(selObjs); + } else if( myActionType==ERASE ) d->Erase( e, false, false, 0 ); }