[processing] handle case when default CRS is None and parameter is not optional

This commit is contained in:
Alexander Bruy 2017-02-10 17:39:45 +02:00
parent 47d46bb8c3
commit cc1adc528e

View File

@ -270,6 +270,8 @@ class CrsWidgetWrapper(WidgetWrapper):
if self.param.default:
crs = QgsCoordinateReferenceSystem(self.param.default)
widget.setCrs(crs)
else:
widget.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)
return widget