MCPcopy Index your code
hub / github.com/MapServer/MapServer / msCopyScalebar

Function msCopyScalebar

mapcopy.c:695–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693 **********************************************************************/
694
695int msCopyScalebar(scalebarObj *dst, scalebarObj *src)
696{
697
698 initScalebar(dst);
699
700 MS_COPYCOLOR(&(dst->imagecolor), &(src->imagecolor));
701 MS_COPYSTELEM(height);
702 MS_COPYSTELEM(width);
703 MS_COPYSTELEM(style);
704 MS_COPYSTELEM(intervals);
705
706 if (msCopyLabel(&(dst->label), &(src->label)) != MS_SUCCESS) {
707 msSetError(MS_MEMERR, "Failed to copy label.","msCopyScalebar()");
708 return MS_FAILURE;
709 }
710
711 MS_COPYCOLOR(&(dst->color), &(src->color));
712 MS_COPYCOLOR(&(dst->backgroundcolor), &(src->backgroundcolor));
713
714 MS_COPYCOLOR(&(dst->outlinecolor), &(src->outlinecolor));
715
716 MS_COPYSTELEM(units);
717 MS_COPYSTELEM(status);
718 MS_COPYSTELEM(position);
719 MS_COPYSTELEM(transparent);
720 MS_COPYSTELEM(interlace);
721 MS_COPYSTELEM(postlabelcache);
722 MS_COPYSTELEM(align);
723
724 return MS_SUCCESS;
725}
726
727/***********************************************************************
728 * msCopyLegend() *

Callers 1

msCopyMapFunction · 0.85

Calls 3

initScalebarFunction · 0.85
msCopyLabelFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected