From 5492f458cd18c7b98af5a24f353438e4e6f12c39 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Wed, 28 Apr 2010 16:14:07 +0000 Subject: [PATCH] fix for seg fault on button-press-event on the Visible tab's tab --- src/sview/sview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sview/sview.c b/src/sview/sview.c index 7acc8a3c17a..ec2577cd786 100644 --- a/src/sview/sview.c +++ b/src/sview/sview.c @@ -831,7 +831,7 @@ extern void tab_pressed(GtkWidget *widget, GdkEventButton *event, /* single click with the right mouse button? */ gtk_notebook_set_current_page(GTK_NOTEBOOK(main_notebook), display_data->extra); - if(event->button == 3) { + if((display_data->extra != TAB_PAGE) && (event->button == 3)) { right_button_pressed(NULL, NULL, event, &signal_params, TAB_CLICKED); } -- GitLab