Fix:Core:Revert wrong part of #2893
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 17 Jan 2010 17:28:51 +0000 (17:28 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Thu, 4 Feb 2010 23:46:22 +0000 (00:46 +0100)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2916 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/graphics.c

index a2f3736..901f64e 100644 (file)
@@ -1554,6 +1554,7 @@ displayitem_draw(struct displayitem *di, void *dummy, struct display_context *dc
        if (! gc) {
                gc=graphics_gc_new(gra);
                graphics_gc_set_foreground(gc, &e->color);
        if (! gc) {
                gc=graphics_gc_new(gra);
                graphics_gc_set_foreground(gc, &e->color);
+               dc->gc=gc;
        }
        if (item_type_is_area(dc->type) && (dc->e->type == element_polyline || dc->e->type == element_text))
                count=limit_count(di->c, count);
        }
        if (item_type_is_area(dc->type) && (dc->e->type == element_polyline || dc->e->type == element_text))
                count=limit_count(di->c, count);