Skip to content
Permalink
Browse files
[processing] Skip _all_ curved labels, not only the first one, in the…
… extract labels algorithm
  • Loading branch information
nirvn authored and nyalldawson committed Jan 7, 2022
1 parent 0120072 commit 4f1168d620b0d88b29ca71f410bf359f4a3c6e5f
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/analysis/processing/qgsalgorithmextractlabels.cpp
@@ -146,12 +146,14 @@ class ExtractLabelSink : public QgsLabelSink
}

const QgsFeatureId fid = label->getFeaturePart()->featureId();
if ( ( settings.placement == QgsPalLayerSettings::Curved ||
settings.placement == QgsPalLayerSettings::PerimeterCurved )
&& !mCurvedWarningPushed.contains( layerId ) )
if ( settings.placement == QgsPalLayerSettings::Curved ||
settings.placement == QgsPalLayerSettings::PerimeterCurved )
{
mCurvedWarningPushed << layerId;
mFeedback->pushWarning( QObject::tr( "Curved placement not supported, skipping labels from layer %1" ).arg( mMapLayerNames.value( layerId ) ) );
if ( !mCurvedWarningPushed.contains( layerId ) )
{
mCurvedWarningPushed << layerId;
mFeedback->pushWarning( QObject::tr( "Curved placement not supported, skipping labels from layer %1" ).arg( mMapLayerNames.value( layerId ) ) );
}
return;
}

0 comments on commit 4f1168d

Please sign in to comment.