mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[otb] None not allowed for default value
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@89 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
This commit is contained in:
parent
8e3bc8740e
commit
8bedb1350c
@ -103,7 +103,7 @@ def generate_parameter_Int( appInstance, paramKey ):
|
||||
out += "None"
|
||||
out += "|"
|
||||
|
||||
defaultVal = "None"
|
||||
defaultVal = "0"
|
||||
try:
|
||||
defaultVal = str(appInstance.GetParameterInt(paramKey))
|
||||
except:
|
||||
@ -127,7 +127,7 @@ def generate_parameter_Float( appInstance, paramKey ):
|
||||
out += "None"
|
||||
out += "|"
|
||||
|
||||
defaultVal = "None"
|
||||
defaultVal = "0.0"
|
||||
try:
|
||||
defaultVal = str(appInstance.GetParameterFloat(paramKey))
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user