aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/infotext_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py
index e582ee47..a21329e6 100644
--- a/modules/infotext_utils.py
+++ b/modules/infotext_utils.py
@@ -477,6 +477,8 @@ def connect_paste(button, paste_fields, input_comp, override_settings_component,
if valtype == bool and v == "False":
val = False
+ elif valtype == int:
+ val = float(v)
else:
val = valtype(v)