amend 822531a which broke polygon geometry labeling - refs #1350

This commit is contained in:
Dane Springmeyer 2012-07-30 18:29:26 -07:00
parent e6e7b4c700
commit 6f174287a2

View file

@ -242,16 +242,13 @@ void text_symbolizer_helper<FaceManagerT, DetectorT>::initialize_points()
} }
else else
{ {
if (how_placed == POINT_PLACEMENT) if (geom.type() == LineString)
{ {
if (geom.type() == Polygon) label::middle_point(geom, label_x,label_y);
{ }
label::centroid(geom, label_x, label_y); else if (how_placed == POINT_PLACEMENT)
} {
else if (geom.type() == LineString) label::centroid(geom, label_x, label_y);
{
label::middle_point(geom, label_x,label_y);
}
} }
else if (how_placed == INTERIOR_PLACEMENT) else if (how_placed == INTERIOR_PLACEMENT)
{ {