diff src/ov-str-mat.cc @ 2493:8ed4362aa0d6

[project @ 1996-11-11 02:35:04 by jwe]
author jwe
date Mon, 11 Nov 1996 02:39:26 +0000
parents 1573640a9994
children 2480ef198c46
line wrap: on
line diff
--- a/src/ov-str-mat.cc
+++ b/src/ov-str-mat.cc
@@ -189,10 +189,17 @@
   return retval;
 }
 
-charMatrix
+string_vector
 octave_char_matrix_str::all_strings (void) const
 {
-  return matrix;
+  int n = matrix.rows ();
+
+  string_vector retval (n);
+
+  for (int i = 0; i < n; i++)
+    retval[i] = matrix.row_as_string (i, true);
+
+  return retval;
 }
 
 string