]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix dump problem VISU table files V5_1_3 V5_1_3_patch01 V5_1_3rc4 V5_1_3rc5 V5_1_main_20091130 V5_1_main_20091201 mergeto_V5_1_main_07Dec09
authordmv <dmv@opencascade.com>
Fri, 27 Nov 2009 10:10:45 +0000 (10:10 +0000)
committerdmv <dmv@opencascade.com>
Fri, 27 Nov 2009 10:10:45 +0000 (10:10 +0000)
src/VISU_I/VISU_DumpPython.cc

index cc010783b11bb6552e69dad44bce6ba9dbe94bc4..f0567bfb25c02d2e465c87bb20f1d0c9617d2422 100644 (file)
@@ -892,6 +892,8 @@ namespace VISU
     }
 
     std::string aSObjectName = GetName(theSObject);
+    if(theArgumentName.empty())
+      theArgumentName = "aSComponent";
     theStr<<thePrefix<<aSObjectName<<" = aBuilder.NewObject("<<theArgumentName<<")"<<endl;
     theStr<<thePrefix<<"if "<<aSObjectName<<":"<<endl;
     thePrefix += PREFIX;