Skip to content
Permalink
Browse files

fix repeated labels on curved lines when label width > repeat distance

(cherry-picked from fb346ec)
o
  • Loading branch information
nyalldawson committed Aug 17, 2016
1 parent f155f40 commit 7e680b0febfb27cee8be5c9e7fc8a9a13c704c68
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/pal/layer.cpp
@@ -426,6 +426,7 @@ void Layer::chopFeaturesAtRepeatDistance()
double chopInterval = fpart->repeatDistance();
if ( chopInterval != 0. && GEOSGeomTypeId_r( geosctxt, geom ) == GEOS_LINESTRING )
{
chopInterval *= ceil( fpart->getLabelWidth() / fpart->repeatDistance() );

double bmin[2], bmax[2];
fpart->getBoundingBox( bmin, bmax );

0 comments on commit 7e680b0

Please sign in to comment.
You can’t perform that action at this time.