mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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:
|
||||
crs = QgsCoordinateReferenceSystem(self.param.default)
|
||||
widget.setCrs(crs)
|
||||
else:
|
||||
widget.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)
|
||||
|
||||
return widget
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user