Bug IPAL19581 REGR: Fatal error SIGSEGV on validation "Selection filter library"

This commit is contained in:
dmv 2008-06-26 12:54:23 +00:00
parent b9f577609d
commit d408364886

View 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();