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

Create spline lines/polygons #16

Open
zsiki opened this issue Jan 3, 2015 · 0 comments
Open

Create spline lines/polygons #16

zsiki opened this issue Jan 3, 2015 · 0 comments

Comments

@zsiki
Copy link

zsiki commented Jan 3, 2015

Finishing the spline on a memory layer (CADLayer Lines) by right button click I got the following error:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/siki/.qgis2/python/plugins/cadtools/tools/spline.py", line 96, in canvasPressEvent
self.createFeature()
File "/home/siki/.qgis2/python/plugins/cadtools/tools/spline.py", line 148, in createFeature
if dlg.exec_():
AttributeError: 'NoneType' object has no attribute 'exec_'

The condition should be changed to
if dlg is not None and dlg.exec_():
or do not activate tool if memory layer is editable

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

No branches or pull requests

1 participant