Zaxl patch : fix-circle-without-label
authorkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 17 Oct 2007 13:55:56 +0000 (13:55 +0000)
committerkazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 17 Oct 2007 13:55:56 +0000 (13:55 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@464 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/graphics.c

index 1b57ab3..3793552 100644 (file)
@@ -360,7 +360,7 @@ xdisplay_draw_elements(struct graphics *gra, GHashTable *display_list, struct it
                                        if (e->u.circle.width > 1) 
                                                gc->meth.gc_set_linewidth(gc->priv, e->u.polyline.width);
                                        gra->meth.draw_circle(gra->priv, gc->priv, &di->pnt[0], e->u.circle.radius);
-                                       if (e->label_size) {
+                                       if (di->label && e->label_size) {
                                                p.x=di->pnt[0].x+3;
                                                p.y=di->pnt[0].y+10;
                                                if (! gra->font[e->label_size])