From: apo Date: Wed, 3 May 2006 09:06:27 +0000 (+0000) Subject: Fix for Bug12310 X-Git-Tag: mergeto_trunk_06May06~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e15af29e1ae239a269f1cdac6a5860d7890d4f1e;p=modules%2Fvisu.git Fix for Bug12310 TC: VISU popup for creation of presentation in case of missed VTK viewer does not work --- diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index 3fc626bb..7b55eefc 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -245,13 +245,11 @@ namespace VISU void CreatePrs3d(VisuGUI* theModule) { - if (SUIT_ViewManager* aViewManager = theModule->getApp()->activeViewManager()) { - QString aType = aViewManager->getType(); - if (aType == VVTK_Viewer::Type()) - CreatePrs3d(theModule); - else - CreatePrs3d(theModule); - } + if (SUIT_ViewManager* aViewManager = theModule->getApp()->activeViewManager()) + if (aViewManager->getType() == VVTK_Viewer::Type()) + return CreatePrs3d(theModule); + + CreatePrs3d(theModule); } }