mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-03-31 10:23:12 +08:00
Fix crash with empty double values in settings.xml
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user