summaryrefslogtreecommitdiff
path: root/ui/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-03-28 11:54:42 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-03-28 11:54:42 +0000
commit20fdcad8b5fe9572328d1db984a4d31b1e50cb64 (patch)
tree3a2de0357257644a8f57984e945f690403ec854f /ui/gtk/sctp_graph_dlg.c
parent3d81f3612b8c24951417215a38424e5ab5ca68b7 (diff)
downloadwireshark-20fdcad8b5fe9572328d1db984a4d31b1e50cb64.tar.gz
From Irene Ruengeler: Fix a crash.
svn path=/trunk/; revision=41818
Diffstat (limited to 'ui/gtk/sctp_graph_dlg.c')
-rw-r--r--ui/gtk/sctp_graph_dlg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/gtk/sctp_graph_dlg.c b/ui/gtk/sctp_graph_dlg.c
index c29a7a06ef..b580bae743 100644
--- a/ui/gtk/sctp_graph_dlg.c
+++ b/ui/gtk/sctp_graph_dlg.c
@@ -63,7 +63,7 @@
#define BOTTOM_BORDER 50
#define SUB_32(a, b) ((a)-(b))
-#define POINT_SIZE 3
+#define POINT_SIZE 1
static GtkWidget * sack_bt;
@@ -296,7 +296,7 @@ draw_sack_graph(struct sctp_udata *u_data)
if (xvalue >= LEFT_BORDER+u_data->io->offset &&
xvalue <= u_data->io->surface_width-RIGHT_BORDER+u_data->io->offset &&
yvalue >= TOP_BORDER-u_data->io->offset-POINT_SIZE &&
- yvalue <= u_data->io->surface_height-BOTTOM_BORDER-u_data->io->offset)
+ yvalue <= u_data->io->surface_height-BOTTOM_BORDER-u_data->io->offset) {
#if GTK_CHECK_VERSION(2,22,0)
cr = cairo_create (u_data->io->surface);
#else
@@ -311,6 +311,7 @@ draw_sack_graph(struct sctp_udata *u_data)
2 * G_PI);
cairo_fill(cr);
cairo_destroy(cr);
+ }
}
}
}
@@ -499,7 +500,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data)
if (xvalue >= LEFT_BORDER+u_data->io->offset &&
xvalue <= u_data->io->surface_width-RIGHT_BORDER+u_data->io->offset &&
yvalue >= TOP_BORDER-u_data->io->offset-POINT_SIZE &&
- yvalue <= u_data->io->surface_height-BOTTOM_BORDER-u_data->io->offset)
+ yvalue <= u_data->io->surface_height-BOTTOM_BORDER-u_data->io->offset) {
#if GTK_CHECK_VERSION(2,22,0)
cr = cairo_create (u_data->io->surface);
#else
@@ -514,6 +515,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data)
2 * G_PI);
cairo_fill(cr);
cairo_destroy(cr);
+ }
}
}
}