From cbb87d0d7d9c52cfdd61d42eca5c6990cd140339 Mon Sep 17 00:00:00 2001 From: martin-s Date: Thu, 11 Nov 2010 18:49:06 +0000 Subject: [PATCH] Fix:Core:Correct handing of zoom position git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3677 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/navit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navit/navit/navit.c b/navit/navit/navit.c index 261c8c3..7e7108d 100644 --- a/navit/navit/navit.c +++ b/navit/navit/navit.c @@ -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 -- 2.7.4