Mercurial > hg > octave-nkf
diff liboctave/chMatrix.cc @ 12959:0c86ae6f7c34
new text_label_property graphics property type
* chMatrix.cc (charMatrix::charMatrix (const string_vector&)):
Accept optional fill value.
* chMatrix.h: Fix decl.
* graphics.h.in (text_label_property): New property type.
(text::properties::string): Use it.
(text::properties::get_string): New custom get function for string
property.
* genprops.awk (emit_declarations): Handle text_label_property the
same as string_array_property.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 14 Aug 2011 12:31:14 -0400 |
parents | 12df7854fa7c |
children | 4faef552363d |
line wrap: on
line diff
--- a/liboctave/chMatrix.cc +++ b/liboctave/chMatrix.cc @@ -74,8 +74,8 @@ elem (0, i) = s[i]; } -charMatrix::charMatrix (const string_vector& s) - : Array<char> (dim_vector (s.length (), s.max_length ()), 0) +charMatrix::charMatrix (const string_vector& s, char fill_value) + : Array<char> (dim_vector (s.length (), s.max_length ()), fill_value) { octave_idx_type nr = rows ();