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

[Backport queued_ltr_backports] Avoid a redundant calculation of visible layer extent in overview canvas #50336

Merged

Conversation

qgis-bot
Copy link
Collaborator

Backport #50329
Authored by: @nyalldawson

This was being called twice immediately in a row, and the first time
was skipping the "isVisible" check used before the second call. As
a result we were ALWAYS recalculating the full extent of the project
with every layer set change, even when the overview canvas was not
open (and this is non-trivial for very large projects!)

On one test project this reduces a multi-second pause when
checking/unchecking layers/groups in the tree to no pause.
@github-actions github-actions bot added this to the 3.28.0 milestone Sep 26, 2022
@nyalldawson nyalldawson merged commit 42c8ffd into queued_ltr_backports Sep 26, 2022
@nyalldawson nyalldawson deleted the backport-50329-to-queued_ltr_backports branch September 26, 2022 09:55
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.

3 participants