Skip to content

Commit

Permalink
fixes related to #4429
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Aug 21, 2012
1 parent 16e2120 commit bbe7847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions maplegend.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ int msEmbedLegend(mapObj *map, imageObj *img)
if(!GET_LAYER(map, l)->class[0]->labels) {
if(msGrowClassLabels(GET_LAYER(map, l)->class[0]) == NULL) return MS_FAILURE;
initLabel(GET_LAYER(map, l)->class[0]->labels[0]);
GET_LAYER(map, l)->class[0]->numlabels = 1;
GET_LAYER(map, l)->class[0]->labels[0]->force = MS_TRUE;
GET_LAYER(map, l)->class[0]->labels[0]->size = MS_MEDIUM; /* must set a size to have a valid label definition */
GET_LAYER(map, l)->class[0]->labels[0]->priority = MS_MAX_LABEL_PRIORITY;
Expand Down
1 change: 1 addition & 0 deletions mapscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ int msEmbedScalebar(mapObj *map, imageObj *img)
if(!GET_LAYER(map, l)->class[0]->labels) {
if(msGrowClassLabels(GET_LAYER(map, l)->class[0]) == NULL) return MS_FAILURE;
initLabel(GET_LAYER(map, l)->class[0]->labels[0]);
GET_LAYER(map, l)->class[0]->numlabels = 1;
GET_LAYER(map, l)->class[0]->labels[0]->force = MS_TRUE;
GET_LAYER(map, l)->class[0]->labels[0]->size = MS_MEDIUM; /* must set a size to have a valid label definition */
GET_LAYER(map, l)->class[0]->labels[0]->priority = MS_MAX_LABEL_PRIORITY;
Expand Down

0 comments on commit bbe7847

Please sign in to comment.