changeset 8833:b86b42f77899

__patch__.m: fix indexing of varargin
author Steffen Groot <steffen.groot@technolution.eu>
date Fri, 20 Feb 2009 15:23:47 -0500
parents 9dddbad47122
children 8dd69187c4a2
files doc/interpreter/contributors.in scripts/ChangeLog scripts/plot/__patch__.m
diffstat 3 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/contributors.in	Fri Feb 20 14:59:29 2009 -0500
+++ b/doc/interpreter/contributors.in	Fri Feb 20 15:23:47 2009 -0500
@@ -59,6 +59,7 @@
 Tomislav Goles
 Keith Goodman
 Brian Gough
+Steffen Groot
 Etienne Grossmann
 Peter Gustafson
 Kai Habel
--- a/scripts/ChangeLog	Fri Feb 20 14:59:29 2009 -0500
+++ b/scripts/ChangeLog	Fri Feb 20 15:23:47 2009 -0500
@@ -1,3 +1,7 @@
+2009-02-20  Steffen Groot  <steffen.groot@technolution.eu>
+
+	* plot/__patch__.m: Correct indexing of varargin.
+
 2009-02-20  Jaroslav Hajek  <highegg@gmail.com>
 
 	* linear-algebra/dmult.m: Remove.
--- a/scripts/plot/__patch__.m	Fri Feb 20 14:59:29 2009 -0500
+++ b/scripts/plot/__patch__.m	Fri Feb 20 15:23:47 2009 -0500
@@ -69,7 +69,7 @@
 	vert = varargin{4};
 	have_faces = true;
       endif
-    elseif (strcmpi (varargin{3}, "vertices"))
+    elseif (strcmpi (varargin{1}, "vertices"))
       vert = varargin{2};
       if (strcmpi (varargin{3}, "faces"))
 	faces = varargin{4};