@@ -2386,8 +2386,8 @@ int msDrawOffsettedLabels(imageObj *image, mapObj *map, int priority)
2386
2386
2387
2387
#define otest (ox ,oy ) if((x0+(ox)) >= labelcache->gutter &&\
2388
2388
(y0+(oy)) >= labelcache->gutter &&\
2389
- (x0+(ox)) < image->width + labelcache->gutter &&\
2390
- (y0+(oy)) < image->height + labelcache->gutter) {\
2389
+ (x0+(ox)) < image->width - labelcache->gutter &&\
2390
+ (y0+(oy)) < image->height - labelcache->gutter) {\
2391
2391
scratch_line.point = scratch_points;\
2392
2392
scratch.poly = &scratch_line; \
2393
2393
offsetAndTest(map,cachePtr,(ox),(oy),priority,l,&scratch); \
@@ -2952,15 +2952,15 @@ int msDrawLabelCache(mapObj *map, imageObj *image)
2952
2952
textSymbolPtr -> rotation , textSymbolPtr -> label -> buffer * textSymbolPtr -> scalefactor ,
2953
2953
& metrics_bounds );
2954
2954
if (need_labelpoly ) get_metrics (& (cachePtr -> point ), MS_CC , textSymbolPtr -> textpath ,
2955
- marker_offset_x + label_offset_x , marker_offset_y + label_offset_y ,
2955
+ label_offset_x , label_offset_y ,
2956
2956
textSymbolPtr -> rotation , 1 , & labelpoly_bounds );
2957
2957
}
2958
2958
} else { /* explicit position */
2959
2959
if (textSymbolPtr -> label -> position == MS_CC ) { /* don't need the marker_offset */
2960
2960
metrics_bounds .poly = & metrics_line ;
2961
2961
textSymbolPtr -> annopoint = get_metrics (& (cachePtr -> point ), MS_CC , textSymbolPtr -> textpath , label_offset_x , label_offset_y ,
2962
2962
textSymbolPtr -> rotation , textSymbolPtr -> label -> buffer * textSymbolPtr -> scalefactor , & metrics_bounds );
2963
- if (need_labelpoly ) get_metrics (& (cachePtr -> point ), textSymbolPtr -> label -> position , textSymbolPtr -> textpath ,
2963
+ if (need_labelpoly ) get_metrics (& (cachePtr -> point ), MS_CC , textSymbolPtr -> textpath ,
2964
2964
label_offset_x , label_offset_y , textSymbolPtr -> rotation , 1 , & labelpoly_bounds );
2965
2965
} else {
2966
2966
metrics_bounds .poly = & metrics_line ;
0 commit comments