summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_data.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-05-25 15:44:43 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-05-25 15:44:43 +0000
commit123b0284d5af09b31a362d650c7d9798f0eeb3dc (patch)
tree40b8c0ac75b55d5cd4336a2902e06923dbc9b2f7 /plugins/Weather/src/weather_data.cpp
parent48ff0e851e2fe7235724ce50b1dc777d1ff18b5d (diff)
- fixed escaping minus sign (patch by $sergi0)
- added gismeteo and msn ini files (patch by $sergi0) git-svn-id: http://svn.miranda-ng.org/main/trunk@4819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_data.cpp')
-rw-r--r--plugins/Weather/src/weather_data.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/Weather/src/weather_data.cpp b/plugins/Weather/src/weather_data.cpp
index bcf0e22139..935cf33dfd 100644
--- a/plugins/Weather/src/weather_data.cpp
+++ b/plugins/Weather/src/weather_data.cpp
@@ -309,7 +309,16 @@ void GetDataValue(WIDATAITEM *UpdateData, TCHAR *Data, TCHAR** szData)
else if (szInfo[startloc] == '&' &&
(szInfo[startloc+1] == ';' || szInfo[startloc+2] == ';' || szInfo[startloc+3] == ';' ||
szInfo[startloc+4] == ';' || szInfo[startloc+5] == ';' || szInfo[startloc+6] == ';'))
+ {
+ // ...but do NOT strip &minus;
+ if ((endloc - startloc) > 7 &&_tcsncmp(szInfo + startloc, _T("&minus;"), 7) == 0)
+ {
+ Data[respos++] = '-';
+ startloc += 7;
+ continue;
+ }
symb = TRUE;
+ }
else if (szInfo[startloc] == '>') tag = FALSE;
else if (szInfo[startloc] == ';') symb = FALSE;
else {