diff --git a/src/symbolizer_helpers.cpp b/src/symbolizer_helpers.cpp index 1cf014bb9..85a917787 100644 --- a/src/symbolizer_helpers.cpp +++ b/src/symbolizer_helpers.cpp @@ -244,7 +244,14 @@ void text_symbolizer_helper::initialize_points() { if (how_placed == POINT_PLACEMENT) { - label::centroid(geom, label_x, label_y); + if (geom.type() == Polygon) + { + label::centroid(geom, label_x, label_y); + } + else if (geom.type() == LineString) + { + label::middle_point(geom, label_x,label_y); + } } else if (how_placed == INTERIOR_PLACEMENT) {