Hello Michael!
On Sat, May 24, 2008 at 12:00:10PM +0200, Michael Hanke wrote:
> 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.
Yes, that fixes it, but two remarks:
1. the patch is reversed.
2. you significantly decrease the precision:
before: <trkpt lon="8,240487640723586" lat="53,0969153624028" >
after: <trkpt lon="8.240487" lat="53.096915" >
QDomElement::setAttribute in dom/qdom.cpp:4829 uses
int count = qsnprintf(buf, sizeof(buf), "%.16g", value);
so you should probably use 16 as well.
> 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);
BYtE
Philipp
--
Philipp Matthias Hahn <[EMAIL PROTECTED]>
GPG/PGP: 9A540E39 @ keyrings.debian.org
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]