diff --git a/NEWS.md b/NEWS.md index 7dc3d2a..680d984 100644 --- a/NEWS.md +++ b/NEWS.md @@ -15,6 +15,9 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Changed +- Fix precipitation histogram possibly not showing snow due to + incomplete check [#94](https://github.com/orontee/taranis/issues/94) + ### Removed ## [1.8.0 - 2024-02-21] diff --git a/src/hourlyforecastbox.cc b/src/hourlyforecastbox.cc index f6f9b82..45849a6 100644 --- a/src/hourlyforecastbox.cc +++ b/src/hourlyforecastbox.cc @@ -356,7 +356,7 @@ void HourlyForecastBox::draw_precipitation_histogram() const { const auto forecast_index = this->forecast_offset + bar_index; if (forecast_index < this->model->hourly_forecast.size()) { const auto forecast = this->model->hourly_forecast[forecast_index]; - if (std::isnan(forecast.rain)) { + if (std::isnan(forecast.rain) and std::isnan(forecast.snow)) { continue; } const auto bar_center_x = (bar_index + 1.0 / 2) * this->bar_width;