Ethereal-dev: [Ethereal-dev] Re: [patch] minor bug in tcp graph

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: didier <dgautheron@xxxxxxxx>
Date: Thu, 13 Feb 2003 21:51:59 +0000
didier wrote:
Hi
Sometime graph_pixmap_display is called with cross on.
Oops, forgot the patch.
Index: gtk/tcp_graph.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/tcp_graph.c,v
retrieving revision 1.27
diff -u -r1.27 tcp_graph.c
--- gtk/tcp_graph.c	8 Jan 2003 02:19:51 -0000	1.27
+++ gtk/tcp_graph.c	13 Feb 2003 05:53:42 -0000
@@ -2029,6 +2029,9 @@
     gdk_draw_pixmap (g->drawing_area->window, g->fg_gc,
 					g->pixmap[g->displayed], 0, 0, g->wp.x, g->wp.y,
 					g->wp.width, g->wp.height);
+    if (g->cross.erase_needed) {
+       cross_xor(g, g->cross.x, g->cross.y);
+    }
 }
 
 static void graph_pixmaps_switch (struct graph *g)