Hi Pilipp,

thanks for your analysis. However, your test tool behaves exacly the
like your log shows on my Qt 4.3 system.

Could you please try the attached patch from the upstream SVN and tell
me if it fixes the bug? If so, I will update the package with it.


Thanks,

Michael


-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050
diff --git a/src/CGarminDBRoute.cpp b/src/CGarminDBRoute.cpp
index 0ae34e8..29a5fef 100644
--- a/src/CGarminDBRoute.cpp
+++ b/src/CGarminDBRoute.cpp
@@ -168,8 +168,8 @@ void CGarminDBRoute::saveGPX(CGpx& gpx)
             QDomElement gpxRtept = gpx.createElement("rtept");
             gpxRoute.appendChild(gpxRtept);
 
-            gpxRtept.setAttribute("lat",QString::number(rtept->v,'f',6));
-            gpxRtept.setAttribute("lon",QString::number(rtept->u,'f',6));
+            gpxRtept.setAttribute("lat",rtept->v);
+            gpxRtept.setAttribute("lon",rtept->u);
 
             QString str = QString("%1").arg(++cnt,3,10,QChar('0'));
 
diff --git a/src/CGarminDBTrack.cpp b/src/CGarminDBTrack.cpp
index 422fa39..5e705e8 100644
--- a/src/CGarminDBTrack.cpp
+++ b/src/CGarminDBTrack.cpp
@@ -206,8 +206,8 @@ void CGarminDBTrack::saveGPX(CGpx& gpx)
         while(trkpt != (*track)->end()) {
             QDomElement gpxTrkpt = gpx.createElement("trkpt");
             trkseg.appendChild(gpxTrkpt);
-            gpxTrkpt.setAttribute("lat",QString::number(trkpt->lat,'f',6));
-            gpxTrkpt.setAttribute("lon",QString::number(trkpt->lon,'f',6));
+            gpxTrkpt.setAttribute("lat",trkpt->lat);
+            gpxTrkpt.setAttribute("lon",trkpt->lon);
 
             if(trkpt->alt != 1e25f || trkpt->dpth != 1e25f) {
                 QDomElement ele = gpx.createElement("ele");
diff --git a/src/CGarminDBWpt.cpp b/src/CGarminDBWpt.cpp
index 4d8b52b..7a14fca 100644
--- a/src/CGarminDBWpt.cpp
+++ b/src/CGarminDBWpt.cpp
@@ -384,8 +384,8 @@ void CGarminDBWpt::saveGPX(CGpx& gpx)
         }
         QDomElement wpt = gpx.createElement("wpt");
         root.appendChild(wpt);
-        wpt.setAttribute("lat",QString::number((*w)->lat,'f',6));
-        wpt.setAttribute("lon",QString::number((*w)->lon,'f',6));
+        wpt.setAttribute("lat",(*w)->lat);
+        wpt.setAttribute("lon",(*w)->lon);
 
         if((*w)->alt != 1e25f || (*w)->dpth != 1e25f) {
             QDomElement ele = gpx.createElement("ele");

Reply via email to