[Marble-commits] KDE/kdeedu/marble/src/plugins/positionprovider/gpsd

Torsten Rahn tackat at kde.org
Fri Sep 10 15:40:12 CEST 2010


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;
         }


More information about the Marble-commits mailing list