Skip to content

Commit

Permalink
Fix label placement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Jan 3, 2016
1 parent b74b1ce commit 329442c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapprimitive.c
Expand Up @@ -1429,7 +1429,7 @@ int msPolygonLabelPoint(shapeObj *p, pointObj *lp, double min_dimension)
if(len > max_len) {
max_len = len;
lp->x = (intersect[i] + intersect[i+1])/2;
/* lp->y = y; */
lp->y = y;
}
}
} else { /* center vertically, fix x */
Expand Down Expand Up @@ -1506,7 +1506,7 @@ int msPolygonLabelPoint(shapeObj *p, pointObj *lp, double min_dimension)
if(len > max_len) {
max_len = len;
lp->y = (intersect[i] + intersect[i+1])/2;
/* lp->x = x; */
lp->x = x;
}
}
}
Expand Down

0 comments on commit 329442c

Please sign in to comment.