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

Add test for selecting invalid geometries #3246

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Conversation

strk
Copy link
Contributor

@strk strk commented Jun 27, 2016

See http://hub.qgis.org/issues/13635
The test passes

QVERIFY( memoryLayer->isValid() );
QgsFeature f1( memoryLayer->dataProvider()->fields(), 1 );
f1.setAttribute( "pk", 1 );
f1.setGeometry( geomFromHexWKB(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind adding a comment with the expected vertices for this wkb here? It'll make the test more readable in future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I've read your comment after merging.
Comment added with commit ba1d38c

@strk strk merged commit 3d319d9 into qgis:master Jun 27, 2016
strk added a commit that referenced this pull request Jun 28, 2016
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.

2 participants