Fix a bug when drawing TSN plots which results in a crash.
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 19 Oct 2011 09:53:39 +0000 (09:53 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 19 Oct 2011 09:53:39 +0000 (09:53 +0000)
Obtained from Irene Ruengeler.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39466 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/sctp_graph_dlg.c

index 4b79b6f92229582cf9b6e450a7705d6f2fb10987..6309751f3a8c6a4d090cc927a1267e553389efd8 100644 (file)
@@ -224,7 +224,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
@@ -239,6 +239,7 @@ draw_sack_graph(struct sctp_udata *u_data)
                                                                                2 * G_PI);
                                                                        cairo_fill(cr);
                                                                        cairo_destroy(cr);
+                                                               }
                                                        }
                                                        if (i < nr-1)
                                                                gap++;