Permalink
Browse files

add validation block to copy functions (#4596)

  • Loading branch information...
1 parent a2aed6a commit db1ab8d2206cf577623a2133d13548cbe63e26a8 @tbonfort tbonfort committed Feb 27, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mapcopy.c
View
@@ -420,6 +420,7 @@ int msCopyWeb(webObj *dst, webObj *src, mapObj *map)
if (msCopyHashTable(&(dst->metadata), &(src->metadata)) != MS_SUCCESS)
return MS_FAILURE;
}
+ msCopyHashTable(&dst->validation,&src->validation);
MS_COPYSTRING(dst->queryformat, src->queryformat);
MS_COPYSTRING(dst->legendformat, src->legendformat);
@@ -567,6 +568,7 @@ int msCopyClass(classObj *dst, classObj *src, layerObj *layer)
/* dst->metadata = msCreateHashTable(); */
msCopyHashTable(&(dst->metadata), &(src->metadata));
}
+ msCopyHashTable(&dst->validation,&src->validation);
MS_COPYSTELEM(minscaledenom);
MS_COPYSTELEM(maxscaledenom);
@@ -967,6 +969,7 @@ int msCopyLayer(layerObj *dst, layerObj *src)
if (&(src->metadata)) {
msCopyHashTable(&(dst->metadata), &(src->metadata));
}
+ msCopyHashTable(&dst->validation,&src->validation);
MS_COPYSTELEM(opacity);
MS_COPYSTELEM(dump);

0 comments on commit db1ab8d

Please sign in to comment.