]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Bug IPAL19581 REGR: Fatal error SIGSEGV on validation "Selection filter library"
authordmv <dmv@opencascade.com>
Thu, 26 Jun 2008 12:54:23 +0000 (12:54 +0000)
committerdmv <dmv@opencascade.com>
Thu, 26 Jun 2008 12:54:23 +0000 (12:54 +0000)
src/SMESH_I/SMESH_Filter_i.cxx

index bfb52b21802a22e640e09a1d0ed9d5beb3f3811f..f03eef26daa0b7c0574311abc48192fe476d8bba 100644 (file)
@@ -2060,13 +2060,13 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
       TPythonDump pd;
       pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
          << "," << aThreshold << ",'" << aThresholdStr;
-      if (strlen(aThresholdID) > 0)
-        pd << "',salome.ObjectToID(" << aThresholdID
-           << ")," << aUnary << "," << aBinary << "," << aTolerance
-           << "," << aTypeOfElem << "," << aPrecision << ")";
+      if (aThresholdID)
+       pd << "',salome.ObjectToID(" << aThresholdID
+          << ")," << aUnary << "," << aBinary << "," << aTolerance
+          << "," << aTypeOfElem << "," << aPrecision << ")";
       else
-        pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
-           << "," << aTypeOfElem << "," << aPrecision << ")";
+       pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
+          << "," << aTypeOfElem << "," << aPrecision << ")";
     }
 
     SMESH::Predicate_ptr aPredicate = SMESH::Predicate::_nil();