diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:59:28 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:59:28 +0200 |
commit | e303a7bcdb5ce6c7afb368d329fbbba8088328f6 (patch) | |
tree | d74d651b8d0c17f5195ac22d1751ce29c35e082a /library | |
parent | 2.0 (diff) | |
download | FreeFileSync-e303a7bcdb5ce6c7afb368d329fbbba8088328f6.tar.gz FreeFileSync-e303a7bcdb5ce6c7afb368d329fbbba8088328f6.tar.bz2 FreeFileSync-e303a7bcdb5ce6c7afb368d329fbbba8088328f6.zip |
2.1
Diffstat (limited to 'library')
-rw-r--r-- | library/globalFunctions.cpp | 6 |
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")); } |