[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/plugins/positionprovider/gpsd
From: Torsten Rahn <tackat () kde ! org>
Date: 2010-09-10 13:40:12
Message-ID: 20100910134012.8F18BAC884 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1173799 by rahn:
- Hopefully fix the build of the GpsdPositionProviderPlugin (builds at
least on SUSE 11.2 right now).
M +6 -1 GpsdPositionProviderPlugin.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/positionprovider/gpsd/GpsdPositionProviderPlugin.cpp \
#1173798:1173799 @@ -68,10 +68,15 @@
}
m_accuracy.level = GeoDataAccuracy::Detailed;
+#if defined( GPSD_API_MAJOR_VERSION ) && ( GPSD_API_MAJOR_VERSION >= 3 )
if ( !isnan( data.fix.epx ) && !isnan( data.fix.epy ) ) {
m_accuracy.horizontal = qMax( data.fix.epx, data.fix.epy );
}
-
+#else
+ if ( !isnan( data.fix.eph ) ) {
+ m_accuracy.horizontal = data.fix.eph;
+ }
+#endif
if ( !isnan( data.fix.epv ) ) {
m_accuracy.vertical = data.fix.epv;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic