[graph-gtk] Fixed issue with connecting pads while pan is not at 0,0



commit 166df1a57136c22cf694f25c6dd57e3ca00ee5cb
Author: Isaac Wagner <isaacbw src gnome org>
Date:   Thu Aug 9 17:31:03 2012 -0400

    Fixed issue with connecting pads while pan is not at 0,0

 graph-gtk/graph-gtk-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/graph-gtk/graph-gtk-view.c b/graph-gtk/graph-gtk-view.c
index d004740..dd465d3 100644
--- a/graph-gtk/graph-gtk-view.c
+++ b/graph-gtk/graph-gtk-view.c
@@ -408,7 +408,7 @@ graph_gtk_view_button_released(GtkWidget* widget, GdkEventButton* event)
 	      GraphGtkNode *node = (GraphGtkNode*)nodes->data;
 	      GraphGtkPad *pad;
 
-	      if(pad = graph_gtk_node_is_on_pad(node, event->x, event->y))
+	      if(pad = graph_gtk_node_is_on_pad(node, event->x+self->pan_x, event->y+self->pan_y))
 		{
 		  REDRAW();
 		  self->is_mouse_connecting = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]