Skip to content

Commit

Permalink
Ensure that msCopyLabel copies expression and text directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Homme Zwaagstra authored and tbonfort committed Apr 13, 2013
1 parent 585b3e7 commit 547391d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mapcopy.c
Expand Up @@ -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
*/
Expand Down

0 comments on commit 547391d

Please sign in to comment.