[libchamplain] Fix swapped row/column in view_load_visible_tiles()
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix swapped row/column in view_load_visible_tiles()
- Date: Wed, 9 Feb 2011 08:37:39 +0000 (UTC)
commit e2989f2094b39280147e37049221ada3b47445da
Author: JiÅ?Ã Techet <techet gmail com>
Date: Sat Jan 22 14:11:45 2011 +0100
Fix swapped row/column in view_load_visible_tiles()
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 d6e6ebb..872beaf 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2343,8 +2343,8 @@ view_load_visible_tiles (ChamplainView *view)
x_end = x_first + x_count;
y_end = y_first + y_count;
- max_x_end = champlain_map_source_get_row_count (priv->map_source, priv->zoom_level);
- max_y_end = champlain_map_source_get_column_count (priv->map_source, priv->zoom_level);
+ max_x_end = champlain_map_source_get_column_count (priv->map_source, priv->zoom_level);
+ max_y_end = champlain_map_source_get_row_count (priv->map_source, priv->zoom_level);
if (x_end > max_x_end)
x_end = max_x_end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]