mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
label_position on lines should take the middle point to preserve previous behavior before move to path type geometries - patch from Ldp - closes #740 and #668
This commit is contained in:
parent
c413d67b82
commit
b6c5c57713
1
AUTHORS
1
AUTHORS
@ -58,6 +58,7 @@ Patches
|
||||
- Philipp Spitzer
|
||||
- Dave Stubbs
|
||||
- River Tarnell
|
||||
- Lennard voor den Dag
|
||||
- Shaun Walbridge
|
||||
- Leslie Wu
|
||||
|
||||
|
||||
@ -181,6 +181,12 @@ public:
|
||||
|
||||
void label_position(double *x, double *y) const
|
||||
{
|
||||
if (type_ == LineString || type_ == MultiLineString)
|
||||
{
|
||||
middle_point(x,y);
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned size = cont_.size();
|
||||
if (size < 3)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user