Skip to content

Commit

Permalink
[processing] handle case when default CRS is None and parameter is no…
Browse files Browse the repository at this point in the history
…t optional
  • Loading branch information
alexbruy committed Feb 10, 2017
1 parent 47d46bb commit cc1adc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -270,6 +270,8 @@ def createWidget(self):
if self.param.default:
crs = QgsCoordinateReferenceSystem(self.param.default)
widget.setCrs(crs)
else:
widget.setOptionVisible(QgsProjectionSelectionWidget.CrsNotSet, True)

return widget

Expand Down

0 comments on commit cc1adc5

Please sign in to comment.