Salome HOME
021800: EDF 2346 : Bug in the dump of ExtrusionAlongpathX
authoreap <eap@opencascade.com>
Tue, 21 Aug 2012 15:50:07 +0000 (15:50 +0000)
committereap <eap@opencascade.com>
Tue, 21 Aug 2012 15:50:07 +0000 (15:50 +0000)
src/SMESH_I/SMESH_DumpPython.cxx

index 0544cb091f48852dcc670d7e6c29895f10e7f24b..e76a8a7360fe547ea3e487b2b54a340cd304def2 100644 (file)
@@ -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 )