Skip to content

Commit

Permalink
[otb] None not allowed for default value
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@89 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 13, 2012
1 parent 8e3bc87 commit 8bedb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sextante/otb/helper/generate_application_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def generate_parameter_Int( appInstance, paramKey ):
out += "None"
out += "|"

defaultVal = "None"
defaultVal = "0"
try:
defaultVal = str(appInstance.GetParameterInt(paramKey))
except:
Expand All @@ -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:
Expand Down

0 comments on commit 8bedb13

Please sign in to comment.