forked from osmocom/wireshark
From Irene Ruengeler: Fix a crash.
svn path=/trunk/; revision=41818
This commit is contained in:
parent
3d81f3612b
commit
20fdcad8b5
|
@ -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
|
||||
|
@ -316,6 +316,7 @@ draw_sack_graph(struct sctp_udata *u_data)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tlist = g_list_next(tlist);
|
||||
}
|
||||
list = g_list_previous(list);
|
||||
|
@ -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
|
||||
|
@ -517,6 +518,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tlist = g_list_next(tlist);
|
||||
}
|
||||
list = g_list_previous(list);
|
||||
|
|
Loading…
Reference in New Issue