From 02636afbd3f83590f3f1b66398c56c085921a74c Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 1 Dec 2006 08:41:22 +0000 Subject: [PATCH] Fix for currect restoring of study. (In connection with Scalar Map On Group) --- src/VISU_I/VISU_Gen_i.cc | 2 +- src/VISU_I/VISU_PrsMerger_i.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index da7fbcab..65011443 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -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)); - // Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore)); + Storable::Registry(ScalarMap_i::myComment.c_str(),&(Restore)); Storable::Registry(GaussPoints_i::myComment.c_str(),&(Restore)); Storable::Registry(DeformedShape_i::myComment.c_str(),&(Restore)); Storable::Registry(CutPlanes_i::myComment.c_str(),&(Restore)); diff --git a/src/VISU_I/VISU_PrsMerger_i.cc b/src/VISU_I/VISU_PrsMerger_i.cc index 61afd4b9..c165e46b 100644 --- a/src/VISU_I/VISU_PrsMerger_i.cc +++ b/src/VISU_I/VISU_PrsMerger_i.cc @@ -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(); -- 2.39.2