[gnumeric] Fix warning on column insertion. [#675224]



commit 432930a4572daed6f745ea0a0c9f3eeb22315406
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue May 1 10:42:32 2012 -0600

    Fix warning on column insertion. [#675224]
    
    2012-05-01  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/commands.c (cmd_insert_cols): check the columns not the rows

 ChangeLog      |    4 ++++
 NEWS           |    1 +
 src/commands.c |    2 +-
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a23de75..1a0cc90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-01  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* src/commands.c (cmd_insert_cols): check the columns not the rows
+
 2012-04-30  Morten Welinder  <terra gnome org>
 
 	* src/func.c (gnm_func_get_arg_description): Ignore initial
diff --git a/NEWS b/NEWS
index c9aed04..9d7bee4 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Andreas:
 	* Improve import of page headers from ODF.
 	* Export/Import validation error message to/from ODF.
 	* Export in-cell font colours. [#675210]
+	* Fix warning on column insertion. [#675224]
 
 Morten:
 	* Minor doc improvement for non-C locales.  [Part of #675000]
diff --git a/src/commands.c b/src/commands.c
index cbbf87a..606fb1d 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -1453,7 +1453,7 @@ cmd_insert_cols (WorkbookControl *wbc,
 	GnmRange r;
 
 	range_init_full_sheet (&r, sheet);
-	r.start.row = r.end.row - count + 1;
+	r.start.col = r.end.col - count + 1;
 
 	if (!sheet_range_trim (sheet, &r, FALSE, FALSE)) {
 		go_gtk_notice_dialog (wbcg_toplevel (WBC_GTK (wbc)), GTK_MESSAGE_ERROR,



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