[mapserver-commits] r13279 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Mar 19 06:36:27 EDT 2012
Author: tbonfort
Date: 2012-03-19 03:36:26 -0700 (Mon, 19 Mar 2012)
New Revision: 13279
Modified:
trunk/mapserver/mapdraw.c
Log:
fix label placement on polygon and line layers if a label marker is used (#4251)
Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c 2012-03-18 16:53:53 UTC (rev 13278)
+++ trunk/mapserver/mapdraw.c 2012-03-19 10:36:26 UTC (rev 13279)
@@ -2934,10 +2934,10 @@
** If the ANNOTATION has an associated marker then the position is handled like a point regardless of underlying shape type. (#2993)
** (Note: might be able to re-order this for more speed.)
*/
- if(layerPtr->type == MS_LAYER_POLYGON || (layerPtr->type == MS_LAYER_ANNOTATION && cachePtr->shapetype == MS_SHAPE_POLYGON && cachePtr->numstyles == 0)) {
+ if((layerPtr->type == MS_LAYER_POLYGON && marker_offset_x==0 )|| (layerPtr->type == MS_LAYER_ANNOTATION && cachePtr->shapetype == MS_SHAPE_POLYGON && cachePtr->numstyles == 0)) {
positions[0]=MS_CC; positions[1]=MS_UC; positions[2]=MS_LC; positions[3]=MS_CL; positions[4]=MS_CR;
npositions = 5;
- } else if(layerPtr->type == MS_LAYER_LINE || (layerPtr->type == MS_LAYER_ANNOTATION && cachePtr->shapetype == MS_SHAPE_LINE && cachePtr->numstyles == 0)) {
+ } else if((layerPtr->type == MS_LAYER_LINE && marker_offset_x == 0) || (layerPtr->type == MS_LAYER_ANNOTATION && cachePtr->shapetype == MS_SHAPE_LINE && cachePtr->numstyles == 0)) {
positions[0]=MS_UC; positions[1]=MS_LC; positions[2]=MS_CC;
npositions = 3;
} else {
More information about the mapserver-commits
mailing list