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 SIP QgsSnapToGridCanvasItem class declaration #36240

Merged
merged 1 commit into from
May 7, 2020

Conversation

troopa81
Copy link
Contributor

@troopa81 troopa81 commented May 6, 2020

Description

Fixes #36033 : missing SIP_RUN class specific declaration

@troopa81 troopa81 added backport release-3_10 Bug Either a bug report, or a bug fix. Let's hope for the latter! labels May 6, 2020
@github-actions github-actions bot added this to the 3.14.0 milestone May 6, 2020
@m-kuhn
Copy link
Member

m-kuhn commented May 6, 2020

Can you provide a detailed explanation of why this is required? This looks like one of the pull requests someone will look at in 3 years time and wonder "what was the reason for that".

@troopa81
Copy link
Contributor Author

troopa81 commented May 7, 2020

Can you provide a detailed explanation of why this is required?

When you edit some vector, QgsSnapToGridItem is added to the scene and so the following Python instruction will make QGIS crash

iface.mapCanvas().items()

It looks like SIP doesn't like double inheritance. To be honest, I find the solution in one for your previous commit #32755

@m-kuhn
Copy link
Member

m-kuhn commented May 7, 2020

Ah, thanks (for ref. most complete explanation here b648a64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reproducible crash using QgsMapCanvas.items() with Oracle layers
2 participants