Permalink
Browse files

Fix angle follow calculation on vertical or horizontal lines (#4839)

  • Loading branch information...
tbonfort committed Jan 13, 2014
1 parent 036f18a commit a9dce78359a1eedb3f3f5b370a27b50492bef9fc
Showing with 2 additions and 2 deletions.
  1. +1 −1 mapprimitive.c
  2. +1 −1 msautotest
View
@@ -2025,7 +2025,7 @@ int msLineLabelPath(mapObj *map, imageObj *img, lineObj *p, textSymbolObj *ts, s
dy = t * (p->point[j+inc].y - p->point[j].y) + p->point[j].y - tp->glyphs[k-1].pnt.y;
}
- if(dx && dy) {
+ if(dx || dy || k==1) {
theta = -atan2(dy,dx);
if (maxoverlapangle > 0 && k > 1) {
Submodule msautotest updated from f8cf02 to d21626

0 comments on commit a9dce78

Please sign in to comment.