]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of the bug IPAL20776 - Problem after clicking "Cancel" in the VISU presentation...
authorouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:13:56 +0000 (12:13 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Dec 2008 12:13:56 +0000 (12:13 +0000)
src/VISUGUI/VisuGUI_ClippingPanel.cxx

index 472170fd8fd5cbe49464a5acd7c8b2267aa90d96..3839330d693ef0d316cdce0ada2cd9e8d8a0335a 100644 (file)
@@ -312,7 +312,8 @@ void VisuGUI_ClippingPanel::fillPrsList()
 
   QStringList aNames;
   for (int i = 0; i < myPresentations.size(); i++) {
-    aNames.append(getPrsName(getPrs(myPresentations.at(i))));
+    if (VISU::Prs3d_i* aPrs = getPrs(myPresentations.at(i)))
+      aNames.append(getPrsName(aPrs));
   }
   myPrsList->addItems(aNames);
 }