Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure labeling map tools only try to affect labels from vector layers #45311

Merged
merged 3 commits into from
Oct 5, 2021

Conversation

nyalldawson
Copy link
Collaborator

Labels from other layer types (eg vector tiles) are unsupported,
which results in a crash.

Fixes #44486

@github-actions github-actions bot added this to the 3.22.0 milestone Sep 29, 2021
Labels from other layer types (eg vector tiles) are unsupported,
which results in a crash.

Fixes qgis#44486
layers which have been set for a canvas but which AREN'T part of
QgsProject::instance()

Required to fix test failure in labeling map tools, but ultimately
a necessary piece of API to ensure that map tools aren't so tightly
bound to QgsProject::instance()
@qgis-bot
Copy link
Collaborator

qgis-bot commented Oct 5, 2021

The backport to release-3_16 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-3_16 release-3_16
# Navigate to the new working tree
cd .worktrees/backport-release-3_16
# Create a new branch
git switch --create backport-45311-to-release-3_16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick d5d61ed2a9e916aba5624bc70594ac657965c60d,aa8f982eb6398f8606cc544939c15c0fdbcc90a1,20cc8d8409abdcc52af0f005aa75e4279a51b3bf
# Push it to GitHub
git push --set-upstream origin backport-45311-to-release-3_16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_16

Then, create a pull request where the base branch is release-3_16 and the compare/head branch is backport-45311-to-release-3_16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on using Move Label tool while a vector tile layer with labels is visible
3 participants