From: John Darrington Date: Sat, 2 Mar 2013 10:30:52 +0000 (+0100) Subject: Display "(empty)" if a sheet has no data X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39a37f8235f3bb03e48b91ca0f969768ca57acef;p=pspp Display "(empty)" if a sheet has no data --- diff --git a/src/ui/gui/psppire-spreadsheet-model.c b/src/ui/gui/psppire-spreadsheet-model.c index 3a14ce6c46..b5ac123755 100644 --- a/src/ui/gui/psppire-spreadsheet-model.c +++ b/src/ui/gui/psppire-spreadsheet-model.c @@ -257,7 +257,8 @@ tree_model_get_value (GtkTreeModel * model, GtkTreeIter * iter, char *x = ods_get_sheet_range (spreadsheetModel->spreadsheet, (gint) iter->user_data); - g_value_set_string (value, x); + + g_value_set_string (value, x ? x : "(empty)"); g_free (x); } break;