Skip to content
Permalink
Browse files

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

  • Loading branch information
nirvn committed Aug 10, 2016
1 parent 56400b1 commit fb346ecf4fda53ccac7ef939bc6ec84a361a9d58
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 fb346ec

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