Skip to content

Commit 27713b8

Browse files
committed
[Processing] Headless scriptability little enhanced
1 parent ccde424 commit 27713b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/plugins/processing/core/GeoAlgorithm.py

+2
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ def setOutputCRS(self):
358358
self.crs = p.crs()
359359
return
360360
qgis = dataobjects.interface.iface
361+
if qgis is None:
362+
return
361363
self.crs = qgis.mapCanvas().mapRenderer().destinationCrs()
362364

363365
def checkInputCRS(self):

0 commit comments

Comments
 (0)