diff options
Diffstat (limited to 'libsowatch')
| -rw-r--r-- | libsowatch/weathernotification.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/libsowatch/weathernotification.cpp b/libsowatch/weathernotification.cpp index ddfd60b..6d693b2 100644 --- a/libsowatch/weathernotification.cpp +++ b/libsowatch/weathernotification.cpp @@ -15,6 +15,8 @@ qreal WeatherNotification::convertTemperature(qreal temp, Unit from, Unit to)  		return temp * (9.0f/5.0f) + 32.0f;  	} else if (from == Fahrenheit && to == Celsius) {  		return (temp - 32.0f) * (5.0f/9.0f); +	} else { +		return 0.0f;  	}  } | 
