]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
0022327: [CEA 937] Wrong display
authorvsr <vsr@opencascade.com>
Tue, 29 Oct 2013 05:11:24 +0000 (05:11 +0000)
committervsr <vsr@opencascade.com>
Tue, 29 Oct 2013 05:11:24 +0000 (05:11 +0000)
Incorrect index if it comes negative (reverse) from the file

src/Plugins/MedReader/IO/vtkMedEntityArray.cxx

index cbb123c040df6066ded5388648f97749089e8fdb..0960055c8b572558ac73968e3e26cb9a1afad5ec 100644 (file)
@@ -464,13 +464,14 @@ void vtkMedEntityArray::GetCellVertices(vtkIdType index, vtkIdList* ids)
         this->GetEntity().GeometryType));
     for (int sub = 0; sub<nsub; sub++)
       {
-      med_int subid = conn->GetValue(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(