Commit ea9827ba authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistCopyFlag: Copy all attributes (bug fix).

parent a7dcc3e5
...@@ -706,6 +706,8 @@ void vlistCopyFlag(int vlistID2, int vlistID1) ...@@ -706,6 +706,8 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
if ( zaxisType == ZAXIS_GENERIC ) zaxisDefLtype(zaxisID2, zaxisInqLtype(zaxisID)); if ( zaxisType == ZAXIS_GENERIC ) zaxisDefLtype(zaxisID2, zaxisInqLtype(zaxisID));
cdiCopyAtts(zaxisID, CDI_GLOBAL, zaxisID2, CDI_GLOBAL);
zaxisID = zaxisID2; zaxisID = zaxisID2;
vars2[varID2].zaxisID = zaxisID2; vars2[varID2].zaxisID = zaxisID2;
} }
......
...@@ -1406,6 +1406,8 @@ int zaxisDuplicate(int zaxisID) ...@@ -1406,6 +1406,8 @@ int zaxisDuplicate(int zaxisID)
} }
} }
cdiCopyAtts(zaxisID, CDI_GLOBAL, zaxisIDnew, CDI_GLOBAL);
return zaxisIDnew; return zaxisIDnew;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment