From cc1adc528eec12ece91f18c4cf489ed213189acd Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Fri, 10 Feb 2017 17:39:45 +0200 Subject: [PATCH] [processing] handle case when default CRS is None and parameter is not optional --- python/plugins/processing/gui/wrappers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/plugins/processing/gui/wrappers.py b/python/plugins/processing/gui/wrappers.py index 2d1c8f5bc47..8b29926ec2a 100644 --- a/python/plugins/processing/gui/wrappers.py +++ b/python/plugins/processing/gui/wrappers.py @@ -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