]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix the display of speed in statusbar output.
authorRob Norris <rw_norris@hotmail.com>
Sun, 20 Oct 2013 10:43:20 +0000 (11:43 +0100)
committerRob Norris <rw_norris@hotmail.com>
Thu, 24 Oct 2013 00:09:32 +0000 (01:09 +0100)
src/vikutils.c

index 2a8ca2d0bc8060a2e04ddc08e337b91a784a7831..55c240c1df864164a641a9fefb0c9d67642a1af9 100644 (file)
@@ -94,7 +94,7 @@ gchar* vu_trackpoint_formatted_message ( gchar *format_code, VikTrackpoint *trkp
                case 'S': {
                        gdouble speed = 0.0;
                        gchar *speedtype = NULL;
                case 'S': {
                        gdouble speed = 0.0;
                        gchar *speedtype = NULL;
-                       if ( !isnan(trkpt->speed) && trkpt_prev ) {
+                       if ( isnan(trkpt->speed) && trkpt_prev ) {
                                if ( trkpt->has_timestamp && trkpt_prev->has_timestamp ) {
                                        if ( trkpt->timestamp == trkpt_prev->timestamp ) {
 
                                if ( trkpt->has_timestamp && trkpt_prev->has_timestamp ) {
                                        if ( trkpt->timestamp == trkpt_prev->timestamp ) {