Skip to content

Commit

Permalink
Allow label tools to work with curved labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 20, 2019
1 parent 1e48dfa commit 8986ea2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgslabelsearchtree.cpp
Expand Up @@ -110,6 +110,11 @@ bool QgsLabelSearchTree::insertLabel( pal::LabelPosition *labelPos, QgsFeatureId
labelPos->getWidth(), labelPos->getHeight(), layerName, labeltext, labelfont, labelPos->getUpsideDown(), diagram, pinned, providerId, labelGeometry );
mSpatialIndex.Insert( c_min, c_max, newEntry.get() );
mOwnedPositions.emplace_back( std::move( newEntry ) );

if ( pal::LabelPosition *next = labelPos->getNextPart() )
{
return insertLabel( next, featureId, layerName, labeltext, labelfont, diagram, pinned, providerId );
}
return true;
}

Expand Down

0 comments on commit 8986ea2

Please sign in to comment.