[Xfce4-commits] <xfce4-weather-plugin:master> Fix logical error in wind_dir_name_by_deg().

Harald Judt noreply at xfce.org
Tue Dec 4 20:58:01 CET 2012


Updating branch refs/heads/master
         to 0e9fd926273180b93ab493366b2504c8d48ac564 (commit)
       from 197cb4e3e3666dcc6fefe1d907b4358faf1f188a (commit)

commit 0e9fd926273180b93ab493366b2504c8d48ac564
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Dec 4 20:56:29 2012 +0100

    Fix logical error in wind_dir_name_by_deg().

 panel-plugin/weather-data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index cadbc7b..62edcb8 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -345,7 +345,7 @@ wind_dir_name_by_deg(gchar *degrees, gboolean long_name)
 
     deg = string_to_double(degrees, 0);
 
-    if (deg >= 360 - 22.5 && deg < 45 - 22.5)
+    if (deg >= 360 - 22.5 || deg < 45 - 22.5)
         return (long_name) ? _("North") : _("N");
 
     if (deg >= 45 - 22.5 && deg < 45 + 22.5)


More information about the Xfce4-commits mailing list