Permalink
Browse files

Ensure that `msCopyLabel` copies `expression` and `text` directives

  • Loading branch information...
homme committed Feb 20, 2013
1 parent 3fc7533 commit 3320266b3a058dda5be027f58c8365ac316da41c
Showing with 10 additions and 0 deletions.
  1. +10 −0 mapcopy.c
View
@@ -346,6 +346,16 @@ int msCopyLabel(labelObj *dst, labelObj *src)
MS_COPYSTELEM(outlinewidth);
MS_COPYSTELEM(space_size_10);
if (msCopyExpression(&(dst->expression), &(src->expression)) != MS_SUCCESS) {
msSetError(MS_MEMERR, "Failed to copy expression.", "msCopyLabel()");
return MS_FAILURE;
}
if (msCopyExpression(&(dst->text), &(src->text)) != MS_SUCCESS) {
msSetError(MS_MEMERR, "Failed to copy text.", "msCopyLabel()");
return MS_FAILURE;
}
/*
** now the styles
*/

0 comments on commit 3320266

Please sign in to comment.