From 4fb9cfe714c89f104c40f1747789f46297aea5c9 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Sun, 25 Nov 2012 14:15:02 +0000 Subject: [PATCH] Set line width 1 for the cairo context used to draw all lines (bug 8017). Do it outside of the loop. svn path=/trunk/; revision=46176 --- ui/gtk/tcp_graph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index 1b68e2666f..37969c4287 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -2278,6 +2278,9 @@ static void graph_pixmap_draw (struct graph *g) cairo_rectangle (cr, 0, 0, g->wp.width, g->wp.height); cairo_fill (cr); + /* Want line width 1 for all elements */ + cairo_set_line_width (cr, 1.0); + for (list=g->elists; list; list=list->next) for (e=list->elements; e->type != ELMT_NONE; e++) { switch (e->type) {