mirror of
https://github.com/qgis/QGIS.git
synced 2025-05-05 00:03:20 -04:00
[processing] handle case when default CRS is None and parameter is not optional
This commit is contained in:
parent
47d46bb8c3
commit
cc1adc528e
@ -270,6 +270,8 @@ class CrsWidgetWrapper(WidgetWrapper):
|
|||||||
if self.param.default:
|
if self.param.default:
|
||||||
crs = QgsCoordinateReferenceSystem(self.param.default)
|
crs = QgsCoordinateReferenceSystem(self.param.default)
|
||||||
widget.setCrs(crs)
|
widget.setCrs(crs)
|
||||||
|
else:
|
||||||
|
widget.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)
|
||||||
|
|
||||||
return widget
|
return widget
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user