From e57e5ae7b810c0a9418f2759905dc42d353c3a2a Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 29 Oct 2013 05:11:24 +0000 Subject: [PATCH] 0022327: [CEA 937] Wrong display Incorrect index if it comes negative (reverse) from the file --- src/Plugins/MedReader/IO/vtkMedEntityArray.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugins/MedReader/IO/vtkMedEntityArray.cxx b/src/Plugins/MedReader/IO/vtkMedEntityArray.cxx index cbb123c0..0960055c 100644 --- a/src/Plugins/MedReader/IO/vtkMedEntityArray.cxx +++ b/src/Plugins/MedReader/IO/vtkMedEntityArray.cxx @@ -464,13 +464,14 @@ void vtkMedEntityArray::GetCellVertices(vtkIdType index, vtkIdList* ids) this->GetEntity().GeometryType)); for (int sub = 0; subGetValue(nsub*index+sub)-1; + med_int subid = conn->GetValue(nsub*index+sub); bool invert = false; if(subid < 0) { subid = -subid; invert = true; } + subid = subid-1; vtkMedEntity subentity; subentity.GeometryType = vtkMedUtilities::GetSubGeometry( -- 2.39.2