From: <prn...@us...> - 2010-08-16 20:36:57
|
Revision: 7545 http://octave.svn.sourceforge.net/octave/?rev=7545&view=rev Author: prnienhuis Date: 2010-08-16 20:36:51 +0000 (Mon, 16 Aug 2010) Log Message: ----------- Added check on presence of first argument Modified Paths: -------------- trunk/octave-forge/main/io/inst/oct2ods.m Modified: trunk/octave-forge/main/io/inst/oct2ods.m =================================================================== --- trunk/octave-forge/main/io/inst/oct2ods.m 2010-08-16 19:33:59 UTC (rev 7544) +++ trunk/octave-forge/main/io/inst/oct2ods.m 2010-08-16 20:36:51 UTC (rev 7545) @@ -99,6 +99,7 @@ ## 2010-07-29 Added option for entering / reading back spreadsheet formulas ## 2010-08-14 Moved check on input cell array to main function ## 2010-08-15 Texinfo header edits +## 2010-08-16 Added check on presence of output argument ## ## Last update of subfunctions below: 2010-08-01 @@ -123,6 +124,8 @@ spsh_opts.formulas_as_text = 0; # Other options here endif + + if (nargout < 1) printf ("Warning: no output spreadsheet file pointer specified as argument.\n"); endif if (strcmp (ods.xtype, 'OTK')) # Write ods file tru Java & ODF toolkit. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |