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

Fix incorrect project CRS when loading project (fix #16149) #4290

Merged
merged 1 commit into from
Mar 29, 2017

Conversation

nyalldawson
Copy link
Collaborator

This commit fixes a situation where loading a project results in incorrect project & canvas CRS. The bug is trigerred whenever something in the project load calls a processEvents() call, eg restoring a project with layer count enabled on a layer or with a composer html item.

When this occurs, the "auto-set CRS to first added layer" code would kick in early and replace the project's CRS with that of the first layer loaded.

To avoid this disable the "auto-set CRS" code when loading layers from a project.

This commit fixes a situation where loading a project results
in incorrect project & canvas CRS. The bug is trigerred whenever
something in the project load calls a processEvents() call, eg
restoring a project with layer count enabled on a layer
or with a composer html item.

When this occurs, the "auto-set CRS to first added layer" code
would kick in early and replace the project's CRS with that
of the first layer loaded.

To avoid this disable the "auto-set CRS" code when loading
layers from a project.
@nirvn
Copy link
Contributor

nirvn commented Mar 22, 2017

That's fantastic! Let me try the PR with a project of mine that would trigger this issue.

@nirvn
Copy link
Contributor

nirvn commented Mar 22, 2017

@nyalldawson , all good here, issue is gone.

@nirvn
Copy link
Contributor

nirvn commented Mar 26, 2017

@nyalldawson , this has been tried on two machines here for a couple of days, no collateral regression found.

@nyalldawson nyalldawson merged commit 3176219 into qgis:master Mar 29, 2017
@nyalldawson nyalldawson deleted the fix_16149 branch March 29, 2017 03:37
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.

None yet

2 participants