From: imn Date: Tue, 22 Sep 2015 12:33:30 +0000 (+0300) Subject: 0023158: [CEA 1582] Paravis: ExtractCellType SEG2 error filter X-Git-Tag: V7_7_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7bf9aeffd21c07b465405d8abf56c15d0f9822b5;p=modules%2Fparavis.git 0023158: [CEA 1582] Paravis: ExtractCellType SEG2 error filter --- diff --git a/src/Plugins/MEDReader/IO/vtkExtractCellType.cxx b/src/Plugins/MEDReader/IO/vtkExtractCellType.cxx index d85af92c..21c1b4b9 100644 --- a/src/Plugins/MEDReader/IO/vtkExtractCellType.cxx +++ b/src/Plugins/MEDReader/IO/vtkExtractCellType.cxx @@ -471,6 +471,8 @@ int vtkExtractCellType::GetGeoTypesArrayStatus(const char *name) void vtkExtractCellType::SetGeoTypesStatus(const char *name, int status) { //std::cerr << "vtkExtractCellType::SetGeoTypesStatus(" << name << "," << status << ")" << std::endl; + if (GetNumberOfGeoTypesArrays()<1) + return; this->Internal->setStatusOfEntryStr(name,(bool)status); if(std::string(name)==GetGeoTypesArrayName(GetNumberOfGeoTypesArrays()-1)) { diff --git a/src/Plugins/MEDReader/IO/vtkExtractGroup.cxx b/src/Plugins/MEDReader/IO/vtkExtractGroup.cxx index d1135d2e..fe83064e 100644 --- a/src/Plugins/MEDReader/IO/vtkExtractGroup.cxx +++ b/src/Plugins/MEDReader/IO/vtkExtractGroup.cxx @@ -683,6 +683,8 @@ int vtkExtractGroup::GetGroupsFlagsArrayStatus(const char *name) void vtkExtractGroup::SetGroupsFlagsStatus(const char *name, int status) { //std::cerr << "vtkExtractGroup::SetFieldsStatus(" << name << "," << status << ")" << std::endl; + if (GetNumberOfGroupsFlagsArrays()<1) + return; this->Internal->setStatusOfEntryStr(name,(bool)status); if(std::string(name)==GetGroupsFlagsArrayName(GetNumberOfGroupsFlagsArrays()-1)) this->Modified();