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

Read source from provider before saving memory layer (fixes #8997) #2624

Merged
merged 2 commits into from
Jan 1, 2016

Conversation

SebDieBln
Copy link
Contributor

Because the memory provider saves field definitions within the source the source needs to be re-read before saving a memory-based vector layer.

@nyalldawson
Copy link
Collaborator

@SebDieBln wow, that method is full of ugly provider specific handling! I guess one more can't hurt ;)

Do you mind adding a test to test_provider_memory.py to cover this bug?

@SebDieBln
Copy link
Contributor Author

@nyalldawson Good point, as ususal 😃
I added the test.

nyalldawson added a commit that referenced this pull request Jan 1, 2016
Read source from provider before saving memory layer (fixes #8997)
@nyalldawson nyalldawson merged commit 5a42728 into qgis:master Jan 1, 2016
@nyalldawson
Copy link
Collaborator

@SebDieBln merged - thanks!

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