Hi,

most older Garmin devices have a very limited note field for waypoints.
Normally the comment from the waypoint is written to this field. If
comment is empty which is very likely you have only the waypoint name as
infomation about this waypoint which is not very usable in case of
Geocaching.com GPX files. The description of a waypoint should be a
summary of the comment and fits better to the note filed at the device
which is only 30 character long. I have written a small Patch that looks
for a empty comment and replaces this field with the description. 

This is the same Topic as in the Mail from krimskrams on 10. Nov 2011

regards,
             Joerg Frede

-- 
Jörg Frede
Linux Consultant and Trainer
Mail: [email protected]

Index: src/CDeviceGarmin.cpp
===================================================================
--- src/CDeviceGarmin.cpp	(Revision 3182)
+++ src/CDeviceGarmin.cpp	(Arbeitskopie)
@@ -677,6 +677,10 @@
         garwpt.ident    = codec->fromUnicode((*wpt)->getName()).data();
 
         QString comment = (*wpt)->getComment();
+        if((*wpt)->getComment() == "" ) 
+        {
+	    comment = (*wpt)->getDescription();
+        }
         comment.remove(QRegExp("<head.*[^>]*><\\/head>"));
         comment.remove(QRegExp("<[^>]*>"));
         comment = comment.simplified();
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to