]> git.street.me.uk Git - andy/viking.git/commitdiff
Launchpad Bug #445374: Prevent crash when downloading maps along a track, with Terras...
authorRob Norris <rw_norris@hotmail.com>
Fri, 17 Sep 2010 17:30:37 +0000 (18:30 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Fri, 17 Sep 2010 18:20:24 +0000 (20:20 +0200)
src/terraservermapsource.c

index 7fb9472d21c9eca5229d1765894fe7af3c5e2ef5..efeb9d004079a3a6c9aab95d304771f1db7b8edb 100644 (file)
@@ -187,7 +187,8 @@ _coord_to_mapcoord ( VikMapSource *self, const VikCoord *src, gdouble xmpp, gdou
        
        TerraserverMapSourcePrivate *priv = TERRASERVER_MAP_SOURCE_PRIVATE(self);
        int type = priv->type;
-       g_assert ( src->mode == VIK_COORD_UTM );
+       if ( src->mode == VIK_COORD_UTM )
+               return FALSE;
 
        if ( xmpp != ympp )
                return FALSE;