[libchamplain] Fix zoom level 0 not displayed
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix zoom level 0 not displayed
- Date: Tue, 23 Mar 2010 14:42:00 +0000 (UTC)
commit bcbb2913c673b92ddcad1b54a712c328abcaee28
Author: JiÅ?Ã Techet <techet gmail com>
Date: Tue Mar 16 02:01:09 2010 +0100
Fix zoom level 0 not displayed
(One should be more careful when simplifying "obvious" things...)
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
champlain/champlain-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index e50c8a7..e8f9d2d 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2249,8 +2249,8 @@ view_load_visible_tiles (ChamplainView *view)
gint arm_size, arm_max, spiral_pos;
gint dirs[5] = {0, 1, 0, -1, 0};
- i = x_first + x_count / 2 - 1;
- j = y_first + y_count / 2 - 1;
+ i = x_first + (x_last - x_first) / 2 - 1;
+ j = y_first + (y_last - y_first) / 2 - 1;
arm_max = MAX(x_last - x_first, y_last - y_first) + 2;
for (arm_size = 1; arm_size < arm_max; arm_size += 2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]