# HG changeset patch # User Pantxo Diribarne # Date 1409514093 -7200 # Node ID d3a223128efc7283ea27572655fd0d68802f6b37 # Parent f984fc55a82571e3926145eaf076daf21432dd48 shrinkfaces.m: improve input checking * Check that the input handle is a scalar patch object. diff -r f984fc55a825 -r d3a223128efc scripts/plot/draw/shrinkfaces.m --- a/scripts/plot/draw/shrinkfaces.m Sun Aug 31 21:44:00 2014 +0200 +++ b/scripts/plot/draw/shrinkfaces.m Sun Aug 31 21:41:33 2014 +0200 @@ -76,7 +76,8 @@ colors = []; p = varargin{1}; - if (ishandle (p) && nargin < 3) + if (isscalar (p) && ishandle (p) && nargin < 3 && + strcmp (get (p, "type"), "patch")) faces = get (p, "Faces"); vertices = get (p, "Vertices"); colors = get (p, "FaceVertexCData");