summaryrefslogtreecommitdiff
path: root/library/globalFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/globalFunctions.cpp')
-rw-r--r--library/globalFunctions.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/globalFunctions.cpp b/library/globalFunctions.cpp
index 33932d67..2f5efab7 100644
--- a/library/globalFunctions.cpp
+++ b/library/globalFunctions.cpp
@@ -49,7 +49,8 @@ int globalFunctions::wxStringToInt(const wxString& number)
if (number.ToLong(&result))
return result;
else
- throw RuntimeException(wxString(_("Conversion error:")) + wxT(" wxString -> long"));
+ return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0
+ //throw RuntimeException(wxString(_("Conversion error:")) + wxT(" wxString -> long"));
}
@@ -59,7 +60,8 @@ double globalFunctions::wxStringToDouble(const wxString& number)
if (number.ToDouble(&result))
return result;
else
- throw RuntimeException(wxString(_("Conversion error:")) + wxT(" wxString -> double"));
+ return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0
+ //throw RuntimeException(wxString(_("Conversion error:")) + wxT(" wxString -> double"));
}
bgstack15