Skip to content

Commit 6e9e69f

Browse files
committedAug 17, 2016
fix repeated labels on curved lines when label width > repeat distance
(cherry-picked from fb346ec) o
1 parent c58187c commit 6e9e69f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/pal/layer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ void Layer::chopFeaturesAtRepeatDistance()
426426
double chopInterval = fpart->repeatDistance();
427427
if ( chopInterval != 0. && GEOSGeomTypeId_r( geosctxt, geom ) == GEOS_LINESTRING )
428428
{
429+
chopInterval *= ceil( fpart->getLabelWidth() / fpart->repeatDistance() );
429430

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

0 commit comments

Comments
 (0)