Salome HOME
Merge from V6_main (04/10/2012)
[modules/smesh.git] / 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 )