gui: Fix crash clicking on the upper-left corner of the data sheet.
authorMichel Boaventura <michel@michelboaventura.com>
Sat, 8 May 2010 17:58:59 +0000 (10:58 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 8 May 2010 17:59:31 +0000 (10:59 -0700)
Bug #29659.

lib/gtk-contrib/psppire-sheet.c

index 89fd45d3fc491a931b9f3c72bdb46b947801c468..b48617136d860a2a2abf31fe57202474fcc0f98b 100644 (file)
@@ -3022,9 +3022,7 @@ psppire_sheet_click_cell (PsppireSheet *sheet, gint row, gint column)
       sheet->range.row0 = 0;
       sheet->range.col0 = 0;
       sheet->range.rowi = psppire_axis_unit_count (sheet->vaxis) - 1;
-      sheet->range.coli =
-       psppire_axis_unit_count (sheet->haxis) - 1;
-      psppire_sheet_select_range (sheet, NULL);
+      sheet->range.coli = psppire_axis_unit_count (sheet->haxis) - 1;
       return TRUE;
     }