diff --git a/src/core/pal/layer.cpp b/src/core/pal/layer.cpp index 4845291af8c..e00b438bccd 100644 --- a/src/core/pal/layer.cpp +++ b/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 );