Permalink
Browse files

Fixed label placement computation issue with thin polygons. (#5234)

  • Loading branch information...
1 parent 4196ac3 commit 078a6a3dcf652df96acb3759c578d37bdf8bd19d @sdlime sdlime committed with tbonfort Feb 5, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 Vagrantfile
  2. +2 −2 mapprimitive.c
  3. +1 −1 msautotest
View
@@ -38,7 +38,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
"libxml2-dev",
"postgis",
"postgresql-server-dev-9.1",
- "postgresql-9.1-postgis",
+ "postgresql-9.1-postgis-2.0",
"vim",
"bison",
"flex",
View
@@ -1437,7 +1437,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 */
@@ -1516,7 +1516,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;
}
}
}

0 comments on commit 078a6a3

Please sign in to comment.