From d2d6741fceed627597169b2beb526fac3a507c74 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 4 Apr 2013 11:21:58 +0000 Subject: [PATCH] Part of fix for the issue 0051852: TC7.2.0: Segmentation violation after loading a file. --- src/VISUGUI/VisuGUI_ClippingPanel.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ClippingPanel.cxx b/src/VISUGUI/VisuGUI_ClippingPanel.cxx index 6f3db5b3..9dee04c5 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); -- 2.39.2