Bug #5208

Error when running Rotation tool twice

Added by Paolo Cavallini about 1 year ago.

Status:New Start Date:03/20/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Patch supplied:No

Description

When clicking on "OK" after the first rotation, I get:

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
File "/home/paolo/.qgis/python/plugins/cadtools/tools/rotateobjecttool.py", line 75, in rotateObject
geom = cadutils.rotate(self.feat.geometry(), self.p1, angle * math.pi / 180)
File "/home/paolo/.qgis/python/plugins/cadtools/tools/cadutils.py", line 136, in rotate
p1 = QgsPoint(k.x() - point.x(), k.y() - point.y())
AttributeError: 'NoneType' object has no attribute 'x'

I think the error should be intercepted, and/or the popup should be closed after execution of the analysis.

Also available in: Atom PDF