[gnumeric] GUI: Fix dependency tabulation.



commit dfa00484231e5c1f7884a48cee4083e35755a737
Author: Morten Welinder <terra gnome org>
Date:   Fri Apr 5 08:33:55 2013 -0400

    GUI: Fix dependency tabulation.

 NEWS                          |    1 +
 src/dialogs/ChangeLog         |    6 ++++++
 src/dialogs/dialog-tabulate.c |    4 ++--
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index bcd7aa0..8339db5 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Morten:
        * Move sheet renaming into a dialog.
        * Make it easier to see what sheet is selected.  [#659317]
        * Implement R.PST, R.QST, and R.QSNORM.
+       * Fix dependency tabulation.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.1
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 16f5c16..e4e2452 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-05  Morten Welinder  <terra gnome org>
+
+       * dialog-tabulate.c (get_grid_float_entry): Get child at the right
+       grid coordinates.
+       (tabulate_ok_clicked): Ditto.
+
 2013-04-02  Morten Welinder  <terra gnome org>
 
        * dialog-cell-comment.c (dialog_cell_comment): Set focus on
diff --git a/src/dialogs/dialog-tabulate.c b/src/dialogs/dialog-tabulate.c
index 970f989..2cc0582 100644
--- a/src/dialogs/dialog-tabulate.c
+++ b/src/dialogs/dialog-tabulate.c
@@ -115,7 +115,7 @@ get_grid_float_entry (GtkGrid *g, int y, int x, GnmCell *cell, gnm_float *number
                       GtkEntry **wp, gboolean with_default, gnm_float default_float)
 {
        GOFormat const *format;
-       GtkWidget *w = gtk_grid_get_child_at (g, x, y + 2);
+       GtkWidget *w = gtk_grid_get_child_at (g, x, y + 1);
 
        g_return_val_if_fail (GTK_IS_ENTRY (w), 3);
 
@@ -164,7 +164,7 @@ tabulate_ok_clicked (G_GNUC_UNUSED GtkWidget *widget, DialogState *dd)
 
        for (row = 1; row < nrows; row++) {
                GtkEntry *e_w;
-               GnmExprEntry *w = GNM_EXPR_ENTRY (gtk_grid_get_child_at (dd->grid, COL_CELL, row + 2));
+               GnmExprEntry *w = GNM_EXPR_ENTRY (gtk_grid_get_child_at (dd->grid, COL_CELL, row + 1));
 
                if (!w || gnm_expr_entry_is_blank (w))
                        continue;


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