Fix:Core:Correct handing of zoom position
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 11 Nov 2010 18:49:06 +0000 (18:49 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 11 Nov 2010 18:49:06 +0000 (18:49 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3677 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index 261c8c3..7e7108d 100644 (file)
@@ -650,7 +650,7 @@ void
 navit_zoom_in_cursor(struct navit *this_, int factor)
 {
        struct point p;
-       if (this_->vehicle && this_->vehicle->follow_curr == 1 && navit_get_cursor_pnt(this_, &p, 0, NULL)) {
+       if (this_->vehicle && this_->vehicle->follow_curr <= 1 && navit_get_cursor_pnt(this_, &p, 0, NULL)) {
                navit_zoom_in(this_, factor, &p);
                this_->vehicle->follow_curr=this_->vehicle->follow;
        } else
@@ -661,7 +661,7 @@ void
 navit_zoom_out_cursor(struct navit *this_, int factor)
 {
        struct point p;
-       if (this_->vehicle && this_->vehicle->follow_curr == 1 && navit_get_cursor_pnt(this_, &p, 0, NULL)) {
+       if (this_->vehicle && this_->vehicle->follow_curr <= 1 && navit_get_cursor_pnt(this_, &p, 0, NULL)) {
                navit_zoom_out(this_, 2, &p);
                this_->vehicle->follow_curr=this_->vehicle->follow;
        } else