[Marble-commits] KDE/kdeedu/marble/src/lib/gps
Dennis Nienhüser
earthwings at gentoo.org
Sat Nov 14 00:14:11 CET 2009
SVN commit 1048806 by nienhueser:
Forward available altitude values to the UI.
CCBUG: 202162
M +2 -1 GpsTracking.cpp
M +3 -2 PositionTracking.cpp
--- trunk/KDE/kdeedu/marble/src/lib/gps/GpsTracking.cpp #1048805:1048806
@@ -207,7 +207,8 @@
if ( m_gpsdData != 0 ){
m_gpsdData =m_gpsd->query( "p" );
m_gpsTracking->setPosition( m_gpsdData->fix.latitude,
- m_gpsdData->fix.longitude );
+ m_gpsdData->fix.longitude,
+ m_gpsdData->fix.altitude );
if (m_gpsTrackSeg == 0 ){
m_gpsTrackSeg = new TrackSegment();
--- trunk/KDE/kdeedu/marble/src/lib/gps/PositionTracking.cpp #1048805:1048806
@@ -121,8 +121,9 @@
PositionProviderStatusAvailable )
{
m_gpsTracking->setPosition( m_positionProvider->position() );
- m_gpsTracking->setPosition( m_gpsTracking->position().latitude(GeoDataCoordinates::Degree),
- m_gpsTracking->position().longitude( GeoDataCoordinates::Degree ) );
+ m_gpsTracking->setPosition( GeoDataCoordinates ( m_gpsTracking->position().longitude(GeoDataCoordinates::Degree),
+ m_gpsTracking->position().latitude( GeoDataCoordinates::Degree ),
+ m_gpsTracking->position().altitude(), GeoDataCoordinates::Degree ) );
if (m_gpsTrackSeg == 0 ) {
More information about the Marble-commits
mailing list