From: John Darrington Date: Tue, 2 Dec 2008 10:03:12 +0000 (+0900) Subject: Remove extraneous code moving sheet adjustments on updates X-Git-Tag: v0.7.1~78 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44505c68f8350309ab81a0c1915413876968e5e8;p=pspp-builds.git Remove extraneous code moving sheet adjustments on updates --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index e8ca1658..db91026f 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -1161,13 +1161,6 @@ range_update_callback (GSheetModel *m, gint row0, gint col0, if ( !GTK_WIDGET_REALIZED (GTK_WIDGET (sheet))) return; - if ( max_visible_row (sheet) > g_sheet_model_get_row_count (sheet->model) - || - max_visible_column (sheet) > g_sheet_model_get_column_count (sheet->model)) - { - gtk_sheet_moveto (sheet, 0, 0, 0, 0); - } - if ( ( row0 < 0 && col0 < 0 ) || ( rowi < 0 && coli < 0 ) ) { gtk_sheet_range_draw (sheet, NULL);