Skip to content

Create spline lines/polygons #16

Description

@zsiki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions