CadTools icon indicating copy to clipboard operation
CadTools copied to clipboard

Create spline lines/polygons

Open zsiki opened this issue 10 years ago • 0 comments

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

zsiki avatar Jan 03 '15 08:01 zsiki