Skip to content

Commit

Permalink
fix repeated labels on curved lines when label width > repeat distance
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 10, 2016
1 parent 56400b1 commit fb346ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/pal/layer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit fb346ec

Please sign in to comment.