From 7bf9aeffd21c07b465405d8abf56c15d0f9822b5 Mon Sep 17 00:00:00 2001 From: imn Date: Tue, 22 Sep 2015 15:33:30 +0300 Subject: [PATCH] 0023158: [CEA 1582] Paravis: ExtractCellType SEG2 error filter --- src/Plugins/MEDReader/IO/vtkExtractCellType.cxx | 2 ++ src/Plugins/MEDReader/IO/vtkExtractGroup.cxx | 2 ++ 2 files changed, 4 insertions(+) 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(); -- 2.39.2