From: rnv Date: Tue, 27 Mar 2012 09:52:22 +0000 (+0000) Subject: Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog. X-Git-Tag: V6_5_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da4fe2a060153eadccd50faeec22f80b0613fd80;p=modules%2Fsmesh.git Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog. --- diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx index a0986ce5d..623f0dbd2 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -282,6 +282,7 @@ namespace SMESH THypothesisDataMap::ConstIterator anIter; for ( anIter = pMap.begin(); anIter != pMap.end(); anIter++ ) { HypothesisData* aData = anIter.value(); + if(!aData || aData->Label.isEmpty()) continue; if ( ( theDim < 0 || aData->Dim.contains( theDim ) ) && aData->IsAux == isAux) { if (checkGeometry) { if (aData->IsNeedGeometry == isNeedGeometry)