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 identify tool with rule renderer and nested else #6807

Merged
merged 2 commits into from Apr 17, 2018

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Apr 17, 2018

See #6679 (comment)

Nested else rules would no longer work with the identify tool

image

@m-kuhn m-kuhn requested a review from pblottiere April 17, 2018 08:27
@m-kuhn m-kuhn changed the title Fix rule based nested Fix identify tool with rule renderer and nested else Apr 17, 2018
@nyalldawson
Copy link
Collaborator

Could we get a test for this?

@m-kuhn
Copy link
Member Author

m-kuhn commented Apr 17, 2018

As soon as it no longer segfaults

@nyalldawson
Copy link
Collaborator

Thanks! I think this logic may be duplicated in rule based labelling too, so that may also need the fix.

@m-kuhn
Copy link
Member Author

m-kuhn commented Apr 17, 2018

Can you point me to code?

@nyalldawson
Copy link
Collaborator

Can you point me to code?

Ignore me - I'm wrong!

@pblottiere
Copy link
Member

Hi @m-kuhn,

Sorry for the regression 😕.

I didn't test theses changes, but it LGTM, especially seeing unit tests.

Thank you!

@m-kuhn m-kuhn merged commit fe27b01 into qgis:master Apr 17, 2018
@m-kuhn m-kuhn deleted the ruleBasedNestedElse branch April 17, 2018 15:57
@m-kuhn
Copy link
Member Author

m-kuhn commented Apr 17, 2018

@pblottiere no worries, that can happen. Any of us would vastly overestimate the own capabilities by saying that he never caused a regression :)

@roya0045
Copy link
Contributor

I think this fix should have also been applied to QgsRuleBasedRenderer::Rule::legendKeysForFeature as the issue fixed is still present in the layout legend.

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

4 participants