From: vsr Date: Tue, 29 Oct 2013 05:11:24 +0000 (+0000) Subject: 0022327: [CEA 937] Wrong display X-Git-Tag: V7_3_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e57e5ae7b810c0a9418f2759905dc42d353c3a2a;p=modules%2Fparavis.git 0022327: [CEA 937] Wrong display Incorrect index if it comes negative (reverse) from the file --- 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(