| 693 | **********************************************************************/ |
| 694 | |
| 695 | int 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() * |
no test coverage detected