From: ouv Date: Thu, 4 Apr 2013 11:22:33 +0000 (+0000) Subject: Part of fix for the issue 0051852: TC7.2.0: Segmentation violation after loading... X-Git-Tag: NEWBOP_OCCdev_38da19bd28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c50a9d76f5a98f764b38af18daababb5f185cdb;p=modules%2Fvisu.git Part of fix for the issue 0051852: TC7.2.0: Segmentation violation after loading a file. --- diff --git a/src/VISUGUI/VisuGUI_ClippingPanel.cxx b/src/VISUGUI/VisuGUI_ClippingPanel.cxx index 9041dc08..87eb34ce 100644 --- a/src/VISUGUI/VisuGUI_ClippingPanel.cxx +++ b/src/VISUGUI/VisuGUI_ClippingPanel.cxx @@ -368,9 +368,9 @@ QStringList VisuGUI_ClippingPanel::getPrsList(_PTR(Study) theStudy, _PTR(SObject) aSObject = aIter->Value(); std::vector 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 aSubList = getPrsList(theStudy, aSObject);