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:
Dane Springmeyer 2011-04-30 00:43:57 +00:00
parent c413d67b82
commit b6c5c57713
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,7 @@ Patches
- Philipp Spitzer
- Dave Stubbs
- River Tarnell
- Lennard voor den Dag
- Shaun Walbridge
- Leslie Wu

View File

@ -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)
{