mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
The current approach of testing !vl || vl->geometryType() != NoGeometry is not intuitive and has been the source of 2 recent bugs. Replacing these tests with the new isSpatial() function makes it immediately obvious what is being tested. It also allows for non-spatial plugin layers to be correctly handled by overriding this method.