mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Set obstacle geometry to original geometry
This commit is contained in:
parent
e19527c369
commit
486bb75ca8
@ -1338,6 +1338,15 @@ void QgsPalLayerSettings::registerFeature( const QgsFeature &f, QgsRenderContext
|
||||
if ( mGeometryGeneratorExpression.hasEvalError() )
|
||||
QgsMessageLog::logMessage( QObject::tr( "Labeling" ), mGeometryGeneratorExpression.evalErrorString() );
|
||||
|
||||
if ( obstacleGeometry.isNull() )
|
||||
{
|
||||
// if an explicit obstacle geometry hasn't been set, we must always use the original feature geometry
|
||||
// as the obstacle -- because we want to use the geometry which was used to render the symbology
|
||||
// for the feature as the obstacle for other layers' labels, NOT the generated geometry which is used
|
||||
// only to place labels for this layer.
|
||||
obstacleGeometry = f.geometry();
|
||||
}
|
||||
|
||||
feature.setGeometry( geometry );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user