From 915008a0a8ab4af8a43b90e52ab4c61972304f25 Mon Sep 17 00:00:00 2001 From: martin-s Date: Sat, 21 Nov 2009 09:47:43 +0000 Subject: [PATCH] Fix:Core:Avoid drawing cursor with no shape git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2779 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/vehicle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/navit/vehicle.c b/navit/vehicle.c index cf93318..dd0c749 100644 --- a/navit/vehicle.c +++ b/navit/vehicle.c @@ -310,6 +310,8 @@ vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle+=360; dbg(1,"enter this=%p gra=%p pnt=%p lazy=%d dir=%d speed=%d\n", this_, gra, pnt, lazy, angle, speed); dbg(1,"point %d,%d\n", pnt->x, pnt->y); + if (!this_->cursor) + return; this_->cursor_pnt=*pnt; this_->cursor_pnt.x-=this_->cursor->w/2; this_->cursor_pnt.y-=this_->cursor->h/2; -- 1.7.9.5