changeset 21807:1955af16b42e

__patch__.m: Support mixed property/value pairs and struct input to patch. * __patch__.m: Remove check for an even number of input arguments.
author Rik <rik@octave.org>
date Thu, 02 Jun 2016 10:02:34 -0700
parents 43980d664e2d
children a4c744194bbb
files scripts/plot/draw/private/__patch__.m
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__patch__.m	Thu Jun 02 09:39:51 2016 -0500
+++ b/scripts/plot/draw/private/__patch__.m	Thu Jun 02 10:02:34 2016 -0700
@@ -161,11 +161,7 @@
         args{10} = [];
       endif
 
-      if (mod (numel (varargin) - iarg + 1, 2) != 0)
-        failed = true;
-      else
-        args = [args, varargin(iarg:end)];
-      endif
+      args = [args, varargin(iarg:end)];
     endif
   else
     args = varargin;