[Marble-commits] KDE/kdeedu/marble/src/plugins/runner/gosmore

Dennis Nienhüser earthwings at gentoo.org
Sat Aug 28 15:31:59 CEST 2010


SVN commit 1169115 by nienhueser:

Check map installation before attempting to do reverse geocoding.

 M  +6 -0      GosmoreRunner.cpp  


--- trunk/KDE/kdeedu/marble/src/plugins/runner/gosmore/GosmoreRunner.cpp #1169114:1169115
@@ -172,6 +172,12 @@
 
 void GosmoreRunner::reverseGeocoding( const GeoDataCoordinates &coordinates )
 {
+    if ( !d->m_gosmoreMapFile.exists() )
+    {
+        emit reverseGeocodingFinished( coordinates, GeoDataPlacemark() );
+        return;
+    }
+
     QString queryString = "flat=%1&flon=%2&tlat=%1&tlon=%2&fastest=1&v=motorcar";
     double lon = coordinates.longitude( GeoDataCoordinates::Degree );
     double lat = coordinates.latitude( GeoDataCoordinates::Degree );


More information about the Marble-commits mailing list