021800: EDF 2346 : Bug in the dump of ExtrusionAlongpathX

This commit is contained in:
eap 2012-08-21 15:50:07 +00:00
parent 733a71000e
commit 7722c85978

View File

@ -85,10 +85,8 @@ namespace SMESH
TPythonDump:: TPythonDump::
operator<<(const TVar& theVarValue) operator<<(const TVar& theVarValue)
{ {
if ( theVarValue.myVals.empty() ) return *this;
const std::vector< std::string >& varNames = SMESH_Gen_i::GetSMESHGen()->GetLastParameters(); const std::vector< std::string >& varNames = SMESH_Gen_i::GetSMESHGen()->GetLastParameters();
if ( theVarValue.myVals.size() > 1 ) if ( theVarValue.myVals.size() != 1 )
{ {
myStream << "[ "; myStream << "[ ";
for ( size_t i = 1; i <= theVarValue.myVals.size(); ++i ) for ( size_t i = 1; i <= theVarValue.myVals.size(); ++i )