mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix repeated labels on curved lines when label width > repeat distance
This commit is contained in:
parent
56400b147b
commit
fb346ecf4f
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user