Salome HOME
Little bug : missing info on components during field spliting when the loading is...
authorageay <ageay>
Fri, 13 Dec 2013 08:53:06 +0000 (08:53 +0000)
committerageay <ageay>
Fri, 13 Dec 2013 08:53:06 +0000 (08:53 +0000)
src/MEDLoader/MEDFileField.cxx

index 278c7168fa0fbbb9ebf304a03ef5f744eadb230d..b68147e4b6a5395066f665ef6f0a2489d3f59e5a 100644 (file)
@@ -4137,6 +4137,8 @@ void MEDFileAnyTypeField1TSWithoutSDA::updateData(int newLgth, const std::vector
         throw INTERP_KERNEL::Exception("MEDFileAnyTypeField1TSWithoutSDA::updateData : internal error 1 !");
       MEDCouplingAutoRefCountObjectPtr<DataArray> newArr=createNewEmptyDataArrayInstance();
       newArr->alloc(newLgth,getNumberOfComponents());
+      if(oldArr)
+        newArr->copyStringInfoFrom(*oldArr);
       int pos=0;
       for(std::vector< std::pair<int,int> >::const_iterator it=oldStartStops.begin();it!=oldStartStops.end();it++)
         {