Salome HOME
22755: [EDF] Improvement of Projection operation
[modules/geom.git] / src / GEOM / GEOM_PythonDump.cxx
index 07aaa0e339f043c501fe5d6f2ba2998f628bf113..107203a407625586b0d77b7edcb7801dbfeed76e 100644 (file)
@@ -44,11 +44,11 @@ namespace GEOM
   {
     if (--myCounter == 0) {
       TCollection_AsciiString aDescr;
-      if ( myAppend ) {
+      if ( myAppend )
         aDescr = myFunction->GetDescription();
-        if ( !aDescr.IsEmpty() ) aDescr += "\n\t";
-      }
       std::string aString = myStream.str();
+      if ( !aDescr.IsEmpty() && !aString.empty())
+        aDescr += "\n\t";
       aDescr += (char *)aString.c_str();
       myFunction->SetDescription( aDescr );
     }