Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnumeric/ChangeLog,v
retrieving revision 1.3409
diff -u -r1.3409 ChangeLog
--- ChangeLog	17 May 2004 19:36:21 -0000	1.3409
+++ ChangeLog	21 May 2004 05:49:58 -0000
@@ -1,3 +1,9 @@
+2004-05-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
+
+	http://bugzilla.gnome.org/show_bug.cgi?id=142836
+	* src/stf.c (stf_write_csv): use current sheet rather than first 
+	  sheet. 
+	
 2004-05-17  Morten Welinder  <terra@gnome.org>
 
 	* src/sheet-autofill.c (autofill_cell): Handle default case, just
Index: NEWS
===================================================================
RCS file: /cvs/gnome/gnumeric/NEWS,v
retrieving revision 1.1509
diff -u -r1.1509 NEWS
--- NEWS	20 May 2004 20:46:44 -0000	1.1509
+++ NEWS	21 May 2004 05:50:21 -0000
@@ -3,6 +3,8 @@
 Andreas:
         http://bugzilla.gnome.org/show_bug.cgi?id=142219
         * Handle borders in latex export correctly
+	http://bugzilla.gnome.org/show_bug.cgi?id=142836
+	* Save current sheet as csv (rather than first sheet)
 
 Christian Neumair:
 	* Put delete actions from edit main menu into their own submenu.
Index: src/stf.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/stf.c,v
retrieving revision 1.112
diff -u -r1.112 stf.c
--- src/stf.c	14 Mar 2004 03:09:25 -0000	1.112
+++ src/stf.c	21 May 2004 05:50:23 -0000
@@ -424,7 +424,7 @@
 	stf_export_options_set_quoting_mode    (config, QUOTING_MODE_AUTO);
 	stf_export_options_set_quoting_char    (config, '"');
 	stf_export_options_sheet_list_add      (config,
-		workbook_sheet_by_index	 (wb_view_workbook (wbv), 0));
+						wb_view_cur_sheet (wbv));
 	stf_export_options_set_write_callback  (config,
 		(StfEWriteFunc) stf_write_func, (gpointer) output);
 
