diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-01-27 12:51:47 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-01-27 12:51:47 +0300 |
| commit | c821b606c08ee05dae9491b6151ab7d28df0c1f6 (patch) | |
| tree | 053564e52db6815cb37cce5d71f7bfce6c4ead72 | |
| parent | a2c5c5e77fb879057c7ae21f1d09f4c6506ad1e5 (diff) | |
fixes #4850 (Weather: по умолчанию единица температуры должна быть градусом, а не пустой)
| -rw-r--r-- | protocols/Weather/src/weather_opt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp index 18a03ffcf6..d7daf2e4bd 100644 --- a/protocols/Weather/src/weather_opt.cpp +++ b/protocols/Weather/src/weather_opt.cpp @@ -96,7 +96,7 @@ void CWeatherProto::LoadOptions(void) opt.eUnit = getWord("eUnit", 2); ptrW szValue(getWStringA("DegreeSign")); - wcsncpy_s(opt.DegreeSign, (szValue == NULL) ? L"" : szValue, _TRUNCATE); + wcsncpy_s(opt.DegreeSign, !mir_wstrlen(szValue) ? L"\xB0" : szValue, _TRUNCATE); opt.DoNotAppendUnit = getByte("DoNotAppendUnit", 0); opt.NoFrac = getByte("NoFractions", 0); |
