Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df0c7d3
)
fix Python Dump
author
eap
<eap@opencascade.com>
Tue, 24 Feb 2009 13:48:47 +0000
(13:48 +0000)
committer
eap
<eap@opencascade.com>
Tue, 24 Feb 2009 13:48:47 +0000
(13:48 +0000)
src/SMESH_I/SMESH_Filter_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Filter_i.cxx
b/src/SMESH_I/SMESH_Filter_i.cxx
index b6cde44c68776ac9070eb5bde0332285738eeac2..a7b63412005604d854cf518089a63996440e90d4 100644
(file)
--- a/
src/SMESH_I/SMESH_Filter_i.cxx
+++ b/
src/SMESH_I/SMESH_Filter_i.cxx
@@
-1995,7
+1995,7
@@
FilterLibrary_ptr FilterManager_i::LoadLibrary( const char* aFileName )
{
SMESH::FilterLibrary_i* aServant = new SMESH::FilterLibrary_i( aFileName );
SMESH::FilterLibrary_var anObj = aServant->_this();
{
SMESH::FilterLibrary_i* aServant = new SMESH::FilterLibrary_i( aFileName );
SMESH::FilterLibrary_var anObj = aServant->_this();
- TPythonDump()<<aServant<<" = "<<this<<".LoadLibrary(
"<<aFileName<<"
)";
+ TPythonDump()<<aServant<<" = "<<this<<".LoadLibrary(
'"<<aFileName<<"'
)";
return anObj._retn();
}
return anObj._retn();
}
@@
-2380,9
+2380,10
@@
CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria
TPythonDump pd;
pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
<< "," << aThreshold << ",'" << aThresholdStr;
TPythonDump pd;
pd << "aCriterion = SMESH.Filter.Criterion(" << aCriterion << "," << aCompare
<< "," << aThreshold << ",'" << aThresholdStr;
- if (aThresholdID)
- pd << "',salome.ObjectToID(" << aThresholdID
- << ")," << aUnary << "," << aBinary << "," << aTolerance
+ if (aThresholdID && strlen(aThresholdID))
+ //pd << "',salome.ObjectToID(" << aThresholdID
+ pd << "','" << aThresholdID
+ << "'," << aUnary << "," << aBinary << "," << aTolerance
<< "," << aTypeOfElem << "," << aPrecision << ")";
else
pd << "',''," << aUnary << "," << aBinary << "," << aTolerance
<< "," << aTypeOfElem << "," << aPrecision << ")";
else
pd << "',''," << aUnary << "," << aBinary << "," << aTolerance