From da4fe2a060153eadccd50faeec22f80b0613fd80 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 27 Mar 2012 09:52:22 +0000 Subject: [PATCH] Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog. --- src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2