Don't use - in front of the temperature to mean No condition

svn path=/trunk/; revision=12606
This commit is contained in:
Iain Holmes
2001-09-04 22:11:35 +00:00
parent 1e251f23e6
commit 4b55768629
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-09-04 Iain Holmes <iain@ximian.com>
* metar.c (weather_conditions_string): Don't return '-' if there is no
condition, as it makes the temperature look negative.
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* e-summary-weather.c (weather_make_html): Make local variable

View File

@ -2345,7 +2345,7 @@ loc9=Tlemcen\\ Zenata DAON ------ ---
[OZ]
name=Australasia
states=AU NZ
states=AU NZ AN
[OZ_AU]
name=Australia
@ -2373,6 +2373,10 @@ loc0=Auckland NZAA ------ ---
loc1=Christchurch NZCH ------ ---
loc2=Wellington NZWN ------ ---
[OZ_AN]
name=Antartica
loc0=Williams\\ Field NZCM ------ ---
[AS]
name=Asia
states=CN HK IN JP KR KP PK SG TW VN

View File

@ -126,7 +126,7 @@ const char *
weather_conditions_string (Weather *w)
{
if (!w->cond.significant) {
return "-";
return " ";
} else {
if (w->cond.phenomenon >= 0 &&
w->cond.phenomenon < 24 &&