Skip to content

Commit 44d6d21

Browse files
authored
Merge pull request #3374 from nirvn/label_repeat_improvement
[pal] fix repeated labels on curved lines when label width > repeat distance
2 parents 58ea211 + fb346ec commit 44d6d21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/pal/layer.cpp

+1
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)