Permalink
Browse files

Fix position of rendered offsetted labelpnt marker (#5326)

  • Loading branch information...
1 parent cd70b0f commit 370a81c3b870ce82675c545da24f51ed4311b952 @tbonfort tbonfort committed Sep 20, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapdraw.c
View
@@ -2511,7 +2511,7 @@ int msDrawOffsettedLabels(imageObj *image, mapObj *map, int priority)
/* here's where we draw the label styles */
for(i=0; i<ts->label->numstyles; i++) {
if(ts->label->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOINT) {
- retval = msDrawMarkerSymbol(map, image, &(cachePtr->point), ts->label->styles[i], layerPtr->scalefactor);
+ retval = msDrawMarkerSymbol(map, image, &(labelLeader.line->point[1]), ts->label->styles[i], layerPtr->scalefactor);
if(UNLIKELY(retval == MS_FAILURE)) {
goto offset_cleanup;
}

0 comments on commit 370a81c

Please sign in to comment.