]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Debug in MEDCouplingUMesh::writeVTK for polylines
authorgeay <anthony.geay@cea.fr>
Fri, 28 Mar 2014 08:37:43 +0000 (09:37 +0100)
committergeay <anthony.geay@cea.fr>
Fri, 28 Mar 2014 08:37:43 +0000 (09:37 +0100)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 32e812a476f0eab4b17c86be26bebb3c894da154..0f1dee158dbae13f46a138c7d659f93e40378134 100644 (file)
@@ -8554,7 +8554,7 @@ void MEDCouplingUMesh::writeVTKLL(std::ostream& ofs, const std::string& cellData
           w4=std::copy(c.begin(),c.end(),w4);
         }
     }
-  types->transformWithIndArr(PARAMEDMEM2VTKTYPETRADUCER,PARAMEDMEM2VTKTYPETRADUCER+INTERP_KERNEL::NORM_MAXTYPE);
+  types->transformWithIndArr(PARAMEDMEM2VTKTYPETRADUCER,PARAMEDMEM2VTKTYPETRADUCER+INTERP_KERNEL::NORM_MAXTYPE+1);
   types->writeVTK(ofs,8,"UInt8","types",byteData);
   offsets->writeVTK(ofs,8,"Int32","offsets",byteData);
   if(szFaceOffsets!=0)