Skip to content
Permalink
Browse files

[processing] fixed parsing of integer parameters

  • Loading branch information
volaya committed Dec 13, 2017
1 parent 0858652 commit 1648c79dc2bc23875461742e22049fe824254cdd
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/core/parameters.py
@@ -144,7 +144,7 @@ def getParameterFromString(s):
params[5] = True if params[5].lower() == 'true' else False
elif clazz == QgsProcessingParameterNumber:
if len(params) > 2:
params[2] = QgsProcessingParameterNumber.Integer if params[2].lower().endswith('int') else QgsProcessingParameterNumber.Double
params[2] = QgsProcessingParameterNumber.Integer if params[2].lower().endswith('integer') else QgsProcessingParameterNumber.Double
if len(params) > 3:
params[3] = float(params[3].strip()) if params[3] is not None else None
if len(params) > 4:

0 comments on commit 1648c79

Please sign in to comment.
You can’t perform that action at this time.