]> git.itanic.dy.fi Git - maemo-mapper/commitdiff
Fixed #109.
authorgnuite <gnuite@gmail.com>
Sun, 22 Oct 2006 21:37:53 +0000 (21:37 +0000)
committergnuite <gnuite@gmail.com>
Sun, 22 Oct 2006 21:37:53 +0000 (21:37 +0000)
git-svn-id: svn+ssh://garage/var/lib/gforge/svnroot/maemo-mapper/trunk@34 6c538b50-5814-0410-93ad-8bdf4c0149d1

src/maemo-mapper.c

index 13a85c682d10820308ba3af745e30468e0973e04..cb83c6b6b7e7e7ec98740951614249a55aed1068 100644 (file)
@@ -7593,10 +7593,13 @@ menu_cb_route_reset(GtkAction *action)
 {
     printf("%s()\n", __PRETTY_FUNCTION__);
 
-    route_find_nearest_point();
-    map_render_paths();
-    map_render_poi();
-    MACRO_QUEUE_DRAW_AREA();
+    if(_route.head)
+    {
+        route_find_nearest_point();
+        map_render_paths();
+        map_render_poi();
+        MACRO_QUEUE_DRAW_AREA();
+    }
 
     vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__);
     return TRUE;