From: John Darrington Date: Fri, 21 Nov 2008 10:15:35 +0000 (+0900) Subject: Avoid critical when renewing dataset X-Git-Tag: v0.7.1~127 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491ae2ba1ffc6db82c108e95aa568be778b2cc59;p=pspp-builds.git Avoid critical when renewing dataset --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index 3743fe9b..ad6d6165 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -1218,6 +1218,9 @@ range_update_callback (GSheetModel *m, gint row0, gint col0, range.rowi = rowi; range.coli = coli; + 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))