Skip to content

Commit 8bedb13

Browse files
author
julien.malik@gmail.com
committedApr 13, 2012
[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
1 parent 8e3bc87 commit 8bedb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/sextante/otb/helper/generate_application_descriptors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def generate_parameter_Int( appInstance, paramKey ):
103103
out += "None"
104104
out += "|"
105105

106-
defaultVal = "None"
106+
defaultVal = "0"
107107
try:
108108
defaultVal = str(appInstance.GetParameterInt(paramKey))
109109
except:
@@ -127,7 +127,7 @@ def generate_parameter_Float( appInstance, paramKey ):
127127
out += "None"
128128
out += "|"
129129

130-
defaultVal = "None"
130+
defaultVal = "0.0"
131131
try:
132132
defaultVal = str(appInstance.GetParameterFloat(paramKey))
133133
except:

0 commit comments

Comments
 (0)
Please sign in to comment.