[gnumeric] Fix off-by-one error.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Fix off-by-one error.
- Date: Fri, 24 Apr 2009 11:30:01 -0400 (EDT)
commit 1986813bb5df6a88e26e94c044d567147a9aa53b
Author: Morten Welinder <terra gnome org>
Date: Fri Apr 24 11:24:34 2009 -0400
Fix off-by-one error.
---
ChangeLog | 2 ++
src/sheet-style.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e203b40..0fce716 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2009-04-24 Morten Welinder <terra gnome org>
+ * src/sheet-style.c (sheet_style_resize): Fix off-by-one.
+
* configure.in (PANGO_WEIGHT_THIN): Check for this and friends.
2009-04-23 Morten Welinder <terra gnome org>
diff --git a/src/sheet-style.c b/src/sheet-style.c
index eb433ab..924efa9 100644
--- a/src/sheet-style.c
+++ b/src/sheet-style.c
@@ -538,7 +538,7 @@ sheet_style_resize (Sheet *sheet, int cols, int rows)
sheet_style_init_size (sheet, cols, rows);
/* Reapply styles. */
- range_init (&new_full, 0, 0, cols, rows);
+ range_init (&new_full, 0, 0, cols - 1, rows - 1);
for (l = styles; l; l = l->next) {
GnmStyleRegion const *sr = l->data;
GnmRange const *r = &sr->range;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]