]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Part of fix for the issue 0051852: TC7.2.0: Segmentation violation after loading... NEWBOP_OCCdev_38da19bd28 V6_main_20130409
authorouv <ouv@opencascade.com>
Thu, 4 Apr 2013 11:22:33 +0000 (11:22 +0000)
committerouv <ouv@opencascade.com>
Thu, 4 Apr 2013 11:22:33 +0000 (11:22 +0000)
src/VISUGUI/VisuGUI_ClippingPanel.cxx

index 9041dc084575a9d9c3f12c3ef211ffcd5eb61fb0..87eb34cef3bc0ba603fb9274d067d27a246c33c3 100644 (file)
@@ -368,9 +368,9 @@ QStringList VisuGUI_ClippingPanel::getPrsList(_PTR(Study) theStudy,
     _PTR(SObject) aSObject = aIter->Value();
     std::vector<VISU::Prs3d_i*> aSTLList = VISU::GetPrs3dList(myModule, aSObject, true /* enable GaussPoints */);
     for (int i = 0; i < aSTLList.size(); i++) {
-      VISU::Prs3d_i* aPrs = aSTLList[i];
-      if (!aList.contains(aPrs->GetEntry().c_str()))
-        aList.append(aPrs->GetEntry().c_str());
+      if( VISU::Prs3d_i* aPrs = aSTLList[i] )
+        if (!aList.contains(aPrs->GetEntry().c_str()))
+          aList.append(aPrs->GetEntry().c_str());
     }
     if (aList.size() == 0) {
       //QList<VISU::Prs3d_i*> aSubList = getPrsList(theStudy, aSObject);