Made the datasheet number cases from 1 instead of zero.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 7 Jul 2007 02:12:41 +0000 (02:12 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 7 Jul 2007 02:12:41 +0000 (02:12 +0000)
src/ui/gui/ChangeLog
src/ui/gui/psppire-data-store.c
src/ui/gui/psppire-data-store.h

index caa457ae96d2245d1fd7af2199ce8c74264c7409..2ac8567c360cc0a6c522f73a696ca72d8ea419c3 100644 (file)
@@ -1,4 +1,7 @@
 2007-07-07  John Darrington <john@darrington.wattle.id.au>
+       
+       * 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. 
index 7dca919c019ed11610943029231eedb13c8323cd..2603d0f4fb63c4dbf259f8dc4896a7749947175e 100644 (file)
@@ -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);
 
index ac1ce8f0c8437581ccdff4ddcbf8675990b8afa2..27bea1c00f8829e4a1e90379f98e2375eab6c339 100644 (file)
@@ -25,6 +25,9 @@
 #include "psppire-dict.h"
 #include "psppire-case-file.h"
 
+#define FIRST_CASE_NUMBER 1
+
+
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */