---
 src/viktrwlayer.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/viktrwlayer.c b/src/viktrwlayer.c
index 05dc83f..ef176ff 100644
--- a/src/viktrwlayer.c
+++ b/src/viktrwlayer.c
@@ -3136,6 +3136,9 @@ static gboolean tool_edit_waypoint_click ( VikTrwLayer 
*vtl, GdkEventButton *eve
     return TRUE;
   }
 
+  if ( !vtl->vl.visible || !vtl->waypoints_visible )
+    return FALSE;
+
   if ( vtl->current_wp && vtl->current_wp->visible )
   {
     /* first check if current WP is within area (other may be 'closer', but we 
want to move the current) */
@@ -3498,6 +3501,9 @@ static gboolean tool_edit_trackpoint_click ( VikTrwLayer 
*vtl, GdkEventButton *e
   if (!vtl || vtl->vl.type != VIK_LAYER_TRW)
     return FALSE;
 
+  if ( !vtl->vl.visible || !vtl->tracks_visible )
+    return FALSE;
+
   if ( vtl->current_tpl )
   {
     /* first check if it is within range of prev. tp. and if current_tp track 
is shown. (if it is, we are moving that trackpoint.) */
-- 
1.7.1


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to