mpetroff / qgsazimuth

Fork of http://sourceforge.net/projects/qgsazimuth/
7 stars 3 forks source link

when adding features without "Open Attribute Form" checked, suprious error reported #34

Closed edgecase14 closed 8 months ago

edgecase14 commented 9 months ago

When you click Draw, the features (tested with points) appear, but you still get an error "Error in adding feature"

In qgsAzimuth.py:279,

            error = vectorlayer.addFeature(feature)
                print(error, feature)
                if error:
                    self.log("Error in adding feature")

according to API docs, vectorlayer.addFeature() returns True on success, so this it should be the opposite.

edgecase14 commented 9 months ago

see PR #35