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 a79a5b1 commit 7ce8b8474227ab94c933ebdc97605d0d75aa2ff8
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 7ce8b84

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