From 7722c85978d5207d35d40b1da35e36f3a8d1a919 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 21 Aug 2012 15:50:07 +0000 Subject: [PATCH] 021800: EDF 2346 : Bug in the dump of ExtrusionAlongpathX --- src/SMESH_I/SMESH_DumpPython.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 0544cb091..e76a8a736 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -85,10 +85,8 @@ namespace SMESH TPythonDump:: operator<<(const TVar& theVarValue) { - if ( theVarValue.myVals.empty() ) return *this; - const std::vector< std::string >& varNames = SMESH_Gen_i::GetSMESHGen()->GetLastParameters(); - if ( theVarValue.myVals.size() > 1 ) + if ( theVarValue.myVals.size() != 1 ) { myStream << "[ "; for ( size_t i = 1; i <= theVarValue.myVals.size(); ++i ) -- 2.30.2