From 69e1fad58df34dd56394a4cb168f340fc551e773 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 15 Jan 2007 07:22:11 +0000 Subject: [PATCH] MPV: fix for PAL12688: implement isPartShown for VISU viewer: return result of first viewer. --- src/VISU_I/VISU_View_i.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; }} } -- 2.39.2