From: John Darrington Date: Sat, 7 Jul 2007 02:12:41 +0000 (+0000) Subject: Made the datasheet number cases from 1 instead of zero. X-Git-Tag: v0.6.0~410 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=b0edc00b3466899dab038e27452125315c859b37 Made the datasheet number cases from 1 instead of zero. --- diff --git a/src/ui/gui/ChangeLog b/src/ui/gui/ChangeLog index caa457ae..2ac8567c 100644 --- a/src/ui/gui/ChangeLog +++ b/src/ui/gui/ChangeLog @@ -1,4 +1,7 @@ 2007-07-07 John Darrington + + * psppire-data-store.c psppire-data-store.h: Made cases number from + 1 instead of 0. * psppire-data-store.c: Added a tooltip like feature to display the label of variables. diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 7dca919c..2603d0f4 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -830,7 +830,7 @@ geometry_get_row_button_label (const GSheetRow *geom, gint unit, gpointer data) TRAILING_ROWS + psppire_case_file_get_case_count (ds->case_file)) return 0; - s = g_strdup_printf (_("%d"), unit); + s = g_strdup_printf (_("%d"), unit + FIRST_CASE_NUMBER); text = pspp_locale_to_utf8 (s, -1, 0); diff --git a/src/ui/gui/psppire-data-store.h b/src/ui/gui/psppire-data-store.h index ac1ce8f0..27bea1c0 100644 --- a/src/ui/gui/psppire-data-store.h +++ b/src/ui/gui/psppire-data-store.h @@ -25,6 +25,9 @@ #include "psppire-dict.h" #include "psppire-case-file.h" +#define FIRST_CASE_NUMBER 1 + + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */