Salome HOME
Avoid empty items in the "Algorithm" combo-box in the "Create/Edit Mesh" dialog.
authorrnv <rnv@opencascade.com>
Tue, 27 Mar 2012 09:52:22 +0000 (09:52 +0000)
committerrnv <rnv@opencascade.com>
Tue, 27 Mar 2012 09:52:22 +0000 (09:52 +0000)
src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx

index a0986ce5d21bc78c2f5d1d190ac0a5504df09dd1..623f0dbd210664ccbf72c459569c3916017ea447 100644 (file)
@@ -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)