From: mpv Date: Mon, 15 Jan 2007 07:22:11 +0000 (+0000) Subject: MPV: fix for PAL12688: implement isPartShown for VISU viewer: return result of first... X-Git-Tag: V3_2_5~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=69e1fad58df34dd56394a4cb168f340fc551e773;p=modules%2Fvisu.git MPV: fix for PAL12688: implement isPartShown for VISU viewer: return result of first viewer. --- diff --git a/src/VISU_I/VISU_View_i.cc b/src/VISU_I/VISU_View_i.cc index bb288c0d..95b12902 100644 --- a/src/VISU_I/VISU_View_i.cc +++ b/src/VISU_I/VISU_View_i.cc @@ -201,8 +201,16 @@ namespace VISU { break; case VISU::View::VIEWER:{ ViewManagerList aViewManagerList = myApplication->viewManagers(); - // to do something - // ... + ViewManagerList::const_iterator anIt = aViewManagerList.begin(); + for( ; anIt != aViewManagerList.end(); anIt++ ) + { + const QPtrVector& views = (*anIt)->getViews(); + for( int i=0; iisShown(); + return; + } + } + myResult = false; break; }} }