Skip to content

Commit

Permalink
Merge pull request #2566 from radosuav/processing_fixes
Browse files Browse the repository at this point in the history
[Processing] Three small fixes
  • Loading branch information
volaya committed Dec 15, 2015
2 parents 08a8b60 + 9096a64 commit 4fbf4cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/outputs.py
Expand Up @@ -161,7 +161,7 @@ def getFileFilter(self, alg):

def getDefaultFileExtension(self, alg):
supported = alg.provider.getSupportedOutputRasterLayerExtensions()
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_VECTOR_LAYER_EXT)
default = ProcessingConfig.getSetting(ProcessingConfig.DEFAULT_OUTPUT_RASTER_LAYER_EXT)
ext = default if default in supported else supported[0]
return ext

Expand Down
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/ExtentSelectionPanel.py
Expand Up @@ -148,7 +148,8 @@ def addToRegion(self, layer, first):
def useLayerExtent(self):
CANVAS_KEY = 'Use canvas extent'
extentsDict = {}
extentsDict[CANVAS_KEY] = iface.mapCanvas().extent()
extentsDict[CANVAS_KEY] = {"extent": iface.mapCanvas().extent(),
"authid": iface.mapCanvas().mapRenderer().destinationCrs().authid()}
extents = [CANVAS_KEY]
layers = dataobjects.getAllLayers()
for layer in layers:
Expand Down
4 changes: 4 additions & 0 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -277,6 +277,10 @@ def getWidgetFromParameter(self, param):
bools = self.getAvailableValuesOfType(ParameterBoolean, None)
for b in bools:
item.addItem(self.resolveValueDescription(b), b)
if param.default:
item.setCurrentIndex(0)
else:
item.setCurrentIndex(1)
elif isinstance(param, ParameterSelection):
item = QComboBox()
item.addItems(param.options)
Expand Down

0 comments on commit 4fbf4cf

Please sign in to comment.