diff options
| author | Mavridis Philippe <mavridisf@gmail.com> | 2021-11-15 12:33:57 +0200 | 
|---|---|---|
| committer | Mavridis Philippe <mavridisf@gmail.com> | 2022-01-14 12:37:05 +0200 | 
| commit | 0256788f8eac8894e801e2f92d14d9a3d7c99940 (patch) | |
| tree | c357fcaedc5f984059bbf813de196d9a7811eb5e /kweather/metar_parser.cpp | |
| parent | 6e43236a7514137f328a044b9ff320f2ed46afb2 (diff) | |
| download | tdetoys-0256788f8eac8894e801e2f92d14d9a3d7c99940.tar.gz tdetoys-0256788f8eac8894e801e2f92d14d9a3d7c99940.zip  | |
KWeather: remove clouds < 0 case.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kweather/metar_parser.cpp')
| -rw-r--r-- | kweather/metar_parser.cpp | 3 | 
1 files changed, 0 insertions, 3 deletions
diff --git a/kweather/metar_parser.cpp b/kweather/metar_parser.cpp index 6c91ee3..7ec252d 100644 --- a/kweather/metar_parser.cpp +++ b/kweather/metar_parser.cpp @@ -726,7 +726,6 @@ void MetarParser::calcCurrentIcon()  	if (weatherInfo.theWeather.isEmpty())  	{ -		  		if (weatherInfo.clouds == 0)  			weatherInfo.theWeather = iconName( WeatherIcon::Sunny, night );  		else if (weatherInfo.clouds > 0 && weatherInfo.clouds <= 2) @@ -737,8 +736,6 @@ void MetarParser::calcCurrentIcon()  			weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 3 );  		else if ( weatherInfo.clouds > 8 && weatherInfo.clouds < 63)  			weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 4 ); -		else if (weatherInfo.clouds < 0) -			weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, weatherInfo.clouds);  		else  			weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 5 );  	}  | 
