]> granicus.if.org Git - graphviz/commitdiff
*** empty log message ***
authorarif <devnull@localhost>
Thu, 5 Nov 2009 16:25:43 +0000 (16:25 +0000)
committerarif <devnull@localhost>
Thu, 5 Nov 2009 16:25:43 +0000 (16:25 +0000)
cmd/smyrna/gui/appmouse.c

index cd28f460fac6e2f19ee6d7ee9c50cc37d1749786..06ff992d243bfdfa6c2924835b287844171f4a3c 100644 (file)
@@ -37,8 +37,8 @@ static void appmouse_left_click(ViewInfo* v,int x,int y)
 }
 static void appmouse_right_click(ViewInfo* v,int x,int y)
 {
-    
-    pick_node_from_coords(view->mouse.GLfinalPos.x,view->mouse.GLfinalPos.y,view->mouse.GLfinalPos.z);
+    if (!view->Topview->is_top_fisheye) 
+        pick_node_from_coords(view->mouse.GLfinalPos.x,view->mouse.GLfinalPos.y,view->mouse.GLfinalPos.z);
 }
 
 
@@ -181,7 +181,7 @@ void appmouse_right_click_up(ViewInfo* v,int x,int y)
        if (view->activeGraph >= 0) 
        {
            if (view->Topview->is_top_fisheye) 
-               changetopfishfocus(view->Topview,&view->mouse.pos.x,&view->mouse.pos.y,  0, 1);
+               changetopfishfocus(view->Topview,&view->mouse.GLpos.x,&view->mouse.GLpos.y,  0, 1);
            else    /*single right click*/
 /*     pick_node_from_coords(view->mouse.GLpos.x, view->mouse.GLpos.y,
                              view->mouse.GLpos.z);*/