diff src/ls-hdf5.cc @ 8914:354179c24c79

fix hdf5 saving of diag & perm matrices
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 05 Mar 2009 21:50:59 +0100
parents 22462fd58e66
children eb63fbe60fab
line wrap: on
line diff
--- a/src/ls-hdf5.cc	Thu Mar 05 13:50:25 2009 -0500
+++ b/src/ls-hdf5.cc	Thu Mar 05 21:50:59 2009 +0100
@@ -749,7 +749,7 @@
   // themselves, so we convert them first to normal matrices using A = A(:,:).
   // This is a temporary hack.
   if (val.is_diag_matrix () || val.is_perm_matrix ())
-    val = val.do_index_op (octave_value_list (2, octave_value::magic_colon_t));
+    val = val.full_value ();
 
   std::string t = val.type_name();