]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for currect restoring of study.
authorenk <enk@opencascade.com>
Fri, 1 Dec 2006 08:41:22 +0000 (08:41 +0000)
committerenk <enk@opencascade.com>
Fri, 1 Dec 2006 08:41:22 +0000 (08:41 +0000)
(In connection with Scalar Map On Group)

src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_PrsMerger_i.cc

index da7fbcabde5e75a4690650bae1610c907b1e6a02..65011443624a18b9f96754fce7d32a290b556f09 100644 (file)
@@ -204,7 +204,7 @@ namespace VISU
   void RegistryStorable() {
     Storable::Registry(Result_i::myComment.c_str(),&(Result_i::Restore));
     Storable::Registry(Mesh_i::myComment.c_str(),&(Restore<Mesh_i>));
-    //    Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore<ScalarMap_i>));
+    Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore<PrsMerger_i>));
     Storable::Registry(GaussPoints_i::myComment.c_str(),&(Restore<GaussPoints_i>));
     Storable::Registry(DeformedShape_i::myComment.c_str(),&(Restore<DeformedShape_i>));
     Storable::Registry(CutPlanes_i::myComment.c_str(),&(Restore<CutPlanes_i>));
index 61afd4b9c520b19c7e55aa12005a8819789dd2e3..c165e46be0a2301a6ee96930d972e3a1d4b1685f 100644 (file)
@@ -137,6 +137,10 @@ VISU::Storable* VISU::PrsMerger_i::Restore(const Storable::TRestoringMap& theMap
     // warning situation
     return this;
   }
+  if(aC1 == 1)
+    if(aStrSubMeshName[0] == QString("NULL"))
+      return this;
+  
   for(int i=0;i < aC2;i++){
     std::string aSubMeshName = aStrSubMeshName[i];
     int              aEntity = aStrEntity[i].toInt();