]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug12310
authorapo <apo@opencascade.com>
Wed, 3 May 2006 09:06:27 +0000 (09:06 +0000)
committerapo <apo@opencascade.com>
Wed, 3 May 2006 09:06:27 +0000 (09:06 +0000)
TC: VISU popup for creation of presentation in case of missed VTK viewer does not work

src/VISUGUI/VisuGUI_Prs3dTools.h

index 3fc626bbd3e55c8859882b2debcf14e1265245d8..7b55eefc92206be7f2b7455eaa3f2fe2d9c779bf 100644 (file)
@@ -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<TPrs3d_i,VVTK_Viewer,TDlg,IsDlgModal>(theModule);
-      else
-       CreatePrs3d<TPrs3d_i,SVTK_Viewer,TDlg,IsDlgModal>(theModule);
-    }
+    if (SUIT_ViewManager* aViewManager = theModule->getApp()->activeViewManager())
+      if (aViewManager->getType() == VVTK_Viewer::Type()) 
+       return CreatePrs3d<TPrs3d_i,VVTK_Viewer,TDlg,IsDlgModal>(theModule);
+
+    CreatePrs3d<TPrs3d_i,SVTK_Viewer,TDlg,IsDlgModal>(theModule);
   }
 }