changeset 8157:c0b8546c0020

add missing return in Array<T>::delete_elements_2
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 29 Sep 2008 07:57:57 +0200
parents 2bc8ec18b2ea
children 15e4a450bf84
files liboctave/Array.cc liboctave/ChangeLog
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/Array.cc	Fri Sep 26 17:35:49 2008 -0400
+++ b/liboctave/Array.cc	Mon Sep 29 07:57:57 2008 +0200
@@ -1555,6 +1555,8 @@
       nr = 1;
       nc = n;
     }
+  else
+    return;
 
   idx_arg.sort (true);
 
--- a/liboctave/ChangeLog	Fri Sep 26 17:35:49 2008 -0400
+++ b/liboctave/ChangeLog	Mon Sep 29 07:57:57 2008 +0200
@@ -1,3 +1,8 @@
+2008-09-29  Jaroslav Hajek  <highegg@gmail.com>
+
+	* Array.cc (Array<T>::maybe_delete_elements_2(idx_vector&)): Return on
+	empty index vector.
+
 2008-09-26  Jaroslav Hajek  <highegg@gmail.com>
 
 	* Array.cc (assign1, assign2, assignN): Do not call