From 731fbc8860356b561022efe9fb8082affde3bc6e Mon Sep 17 00:00:00 2001 From: Anthony GEAY Date: Mon, 21 Sep 2020 23:17:06 +0200 Subject: [PATCH] tuleap20060 : bug correction inside medwriter in int64 mode --- src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx index 93eb8f04..6f464482 100644 --- a/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx +++ b/src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx @@ -404,7 +404,7 @@ void AppendMCFieldFrom(MEDCoupling::TypeOfField tf, MEDCouplingMesh *mesh, MEDFi MCAuto daId(MEDCoupling::DynamicCast(da)); if(dai.isNotNull() || daId.isNotNull()) { - std::string fieldName(dai->getName()); + std::string fieldName(da->getName()); if((fieldName!=FAMFIELD_FOR_CELLS || tf!=MEDCoupling::ON_CELLS) && (fieldName!=FAMFIELD_FOR_NODES || tf!=MEDCoupling::ON_NODES)) { if(!dai) -- 2.39.2