gnumeric r17150 - in trunk: . src



Author: mortenw
Date: Thu Feb 19 16:57:52 2009
New Revision: 17150
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17150&view=rev

Log:
2009-02-19  Morten Welinder  <terra gnome org>

	* src/ssconvert.c (convert): Don't complain over multiple sheets
	when there is only one.  Fixes #572448.



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/ssconvert.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Thu Feb 19 16:57:52 2009
@@ -110,6 +110,8 @@
 	* Fix xls export of SERIESSUM.  [#572127]
 	* Disable non-functional corba plugin.  [#572356]
 	* Handle GTK+ deprecation issues.  [#572240]
+	* When ssconvert-ing a single-sheet workbook, don't complain the
+	exporter can handle only a single sheet.  [#572448]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.3

Modified: trunk/src/ssconvert.c
==============================================================================
--- trunk/src/ssconvert.c	(original)
+++ trunk/src/ssconvert.c	Thu Feb 19 16:57:52 2009
@@ -325,7 +325,8 @@
 					     "ssconvert-range",
 					     wb,
 					     ssconvert_range);
-			else if (go_file_saver_get_save_scope (fs) != FILE_SAVE_WORKBOOK) {
+			else if (workbook_sheet_count (wb) > 1 &&
+				 go_file_saver_get_save_scope (fs) != FILE_SAVE_WORKBOOK) {
 				if (ssconvert_one_file_per_sheet) {
 					g_warning ("TODO: one sheet per file is not implemented");
 				} else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]