Bug report #12632

QgsSnapper.snapToCurrentLayer() not working anymore in QGIS 2.8

Added by luca76 - about 9 years ago. Updated about 9 years ago.

Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:20747


Hi, I (but not only me: [1]) 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 [1].

Is there any way to make QgsSnapper.snapToCurrentLayer working as before?

It should be fixed in 2.8.2, as it breaks plugins.

[1] http://gis.stackexchange.com/questions/138836/snaptocurrentlayer-in-qgis2-8-with-python-programming


#1 Updated by luca76 - about 9 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

sorry for duplicate

Also available in: Atom PDF