Fix crash with empty double values in settings.xml

This commit is contained in:
Oleg Korshul
2025-03-18 18:52:12 +03:00
parent 8cf475efe1
commit 360235a0ad

View File

@ -122,6 +122,9 @@ namespace NSStringUtils
// locale independent (simple double convert)
static double GetDouble(const std::string& sValue)
{
if (sValue.empty())
return 0;
char delim = '.';
std::string::size_type posDelim = sValue.find(delim);