Skip to content

Commit

Permalink
Pass polygon boundary geometry to pal if labeling polygon perimeter w…
Browse files Browse the repository at this point in the history
…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.
10 changes: 9 additions & 1 deletion src/core/qgspallabeling.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 74de2fb

Please sign in to comment.