Not intentional, just honest mistakes.

Fix uploaded.


Thanks for spotting these issues and keep reporting any more you come across.


--
Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.
________________________________
From: Kamil Ignacak <acer...@wp.pl>
Sent: 15 August 2016 18:16:42
To: viking-devel@lists.sourceforge.net
Subject: [Viking-devel] Handling of VIK_UNITS_DISTANCE_NAUTICAL_MILES

Hello,

I have noticed that there is a number of places in source code that
don't handle VIK_UNITS_DISTANCE_NAUTICAL_MILES value returned by
a_vik_get_units_distance(). In such places a switch statements handles
KILOMETRES and MILES, but not NAUTICAL_MILES. One such example from
viktrwlayer_tracklist.c:428:

        switch ( dist_units ) {
        case VIK_UNITS_DISTANCE_MILES:
                trk_dist = VIK_METERS_TO_MILES(trk_dist);
                break;
        default:
                trk_dist = trk_dist/1000.0;
                break;
        }

Other places that I've spotted are:
- viktrwlayer_tpwin.c:519
- viktrwlayer_tracklist.c:625


Is it intentional?

Best regards,
Kamil

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/
------------------------------------------------------------------------------
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to