Skip to content

Commit

Permalink
[processing] Skip _all_ curved labels, not only the first one, in the…
Browse files Browse the repository at this point in the history
… extract labels algorithm
  • Loading branch information
nirvn authored and nyalldawson committed Jan 7, 2022
1 parent 0120072 commit 4f1168d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/analysis/processing/qgsalgorithmextractlabels.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4f1168d

Please sign in to comment.