Bug report #12631
QgsSnapper.snapToCurrentLayer() not working anymore in QGIS 2.8
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20746|
Hi, I (but not only me: ) discovered that QgsSnapper.snapToCurrentLayer() is not working anymore in QGIS 2.8, it returns always no result, as you can see in the sample code .
Is there any way to make QgsSnapper.snapToCurrentLayer working as before?
It should be fixed in 2.8.2, as it breaks plugins.
Make QgsMapCanvas.snapToCurrentLayer() work again (fixes #12631)
The snapper was called with screen coords instead of map coords
(due to implicit conversion QPoint->QgsPoint)