[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:
julien.malik@gmail.com 2012-04-13 16:41:18 +00:00
parent 8e3bc8740e
commit 8bedb1350c

View File

@ -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: