Mercurial > hg > octave-nkf
diff src/oct-obj.cc @ 8034:f61bd8e0d682
fix default_save_options parsing and allow mixing options with other arguments.
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 13:50:15 -0400 |
parents | a1dbe9d80eee |
children | 283989f2da9b |
line wrap: on
line diff
--- a/src/oct-obj.cc +++ b/src/oct-obj.cc @@ -206,11 +206,16 @@ total_nr += n ? n : 1; } - argv.resize (total_nr+1); + octave_idx_type k = 0; + if (! fcn_name.empty ()) + { + argv.resize (total_nr+1); + argv[0] = fcn_name; + k = 1; + } + else + argv.resize (total_nr); - argv[0] = fcn_name; - - octave_idx_type k = 1; for (octave_idx_type i = 0; i < len; i++) { octave_idx_type nr = elem(i).rows ();