[gnumeric] Fix 'Go to First'. [#699631]



commit 70c4409ca420380a8150d40271392661c19707b7
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Mon May 6 00:06:13 2013 -0600

    Fix 'Go to First'. [#699631]
    
    2013-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * src/sheet-utils.c (gnm_sheet_guess_data_range): also check
        first column

 ChangeLog         |    5 +++++
 NEWS              |    1 +
 src/sheet-utils.c |    2 +-
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e15716d..4136eb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-06  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * src/sheet-utils.c (gnm_sheet_guess_data_range): also check
+       first column
+
 2013-05-05  Morten Welinder  <terra gnome org>
 
        * src/dependent.c (style_dep_eval): New function.  Re-clear the
diff --git a/NEWS b/NEWS
index 4e1b4e3..4c47455 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ Gnumeric 1.12.3
 
 Andreas:
        * Fix border handling for merged cells in LaTeX export.
+       * Fix 'Go to First'. [#699631]
 
 Morten:
        * Improve xlsx import of style-only cells.
diff --git a/src/sheet-utils.c b/src/sheet-utils.c
index f7f2e0c..0ff924e 100644
--- a/src/sheet-utils.c
+++ b/src/sheet-utils.c
@@ -107,7 +107,7 @@ gnm_sheet_guess_data_range (Sheet *sheet, GnmRange *region)
        int start = region->start.col;
 
        /* look for previous empty column */
-       for (col = start - 1; col > 0; col--)
+       for (col = start - 1; col >= 0; col--)
                if (!sheet_cell_or_one_below_is_not_empty (sheet, col, region->start.row))
                        break;
        region->start.col = col + 1;


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