Skip to content
Permalink
Browse files
Pass polygon boundary geometry to pal if labeling polygon perimeter w…
…ith repetitions
  • Loading branch information
manisandro committed Jun 21, 2014
1 parent 9f295da commit 74de2fb
Showing 1 changed file with 9 additions and 1 deletion.
@@ -1985,7 +1985,15 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
}
}

GEOSGeometry* geos_geom_clone = GEOSGeom_clone( geos_geom );
GEOSGeometry* geos_geom_clone;
if ( GEOSGeomTypeId( geos_geom ) == GEOS_POLYGON && repeatDistance > 0 && placement == Line )
{
geos_geom_clone = GEOSBoundary( geos_geom );
}
else
{
geos_geom_clone = GEOSGeom_clone( geos_geom );
}

//data defined position / alignment / rotation?
bool dataDefinedPosition = false;

0 comments on commit 74de2fb

Please sign in to comment.