[gnumeric] SheetStyle: Increase TILE_TOP_LEVEL to match GNM_MAX_COLS.



commit 2640c28bb001be5b9f40ba7da810a80e5b668f3a
Author: Morten Welinder <terra gnome org>
Date:   Fri May 1 11:56:56 2009 -0400

    SheetStyle: Increase TILE_TOP_LEVEL to match GNM_MAX_COLS.
---
 src/sheet-style.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sheet-style.c b/src/sheet-style.c
index dc57600..2d88693 100644
--- a/src/sheet-style.c
+++ b/src/sheet-style.c
@@ -183,7 +183,7 @@ rstyle_apply (GnmStyle **old, ReplacementStyle *rs)
 
 /* If you change this, change the tile_{widths,heights} here
  * and GNM_MAX_COLS and GNM_MAX_ROWS in gnumeric.h */ 
-#define TILE_TOP_LEVEL 5
+#define TILE_TOP_LEVEL 6
 
 #define TILE_SIZE_COL 4
 #define	TILE_SIZE_ROW 16
@@ -443,13 +443,13 @@ sheet_style_sanity_check (void)
 	unsigned c, r;
 	int i;
 
-	for (c = 1, i = 0; i < TILE_TOP_LEVEL; i++) {
+	for (c = 1, i = 0; i <= TILE_TOP_LEVEL; i++) {
 		g_assert (c < G_MAXUINT / TILE_SIZE_COL);
 		c *= TILE_SIZE_COL;
 	}
 	g_assert (c >= GNM_MAX_COLS);
 
-	for (r = 1, i = 0; i < TILE_TOP_LEVEL; i++) {
+	for (r = 1, i = 0; i <= TILE_TOP_LEVEL; i++) {
 		g_assert (r < G_MAXUINT / TILE_SIZE_COL);
 		r *= TILE_SIZE_ROW;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]