changeset 25465:26164f8a734a

improve type checking in genpropdoc.m (bug #54109) * genpropdoc.m (getdefault): Check that object is hghandle first before checking whether it is a scalar.
author John W. Eaton <jwe@octave.org>
date Wed, 13 Jun 2018 02:11:31 -0400
parents c0bca26d0713
children c3d9e9d965d3
files doc/interpreter/genpropdoc.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/genpropdoc.m	Tue Jun 12 15:08:07 2018 -0400
+++ b/doc/interpreter/genpropdoc.m	Wed Jun 13 02:11:31 2018 -0400
@@ -1745,7 +1745,7 @@
   def = get (h, field);
 
   ## Don't print default values for graphics handles
-  if (isscalar (def) && def != 0 && ishghandle (def))
+  if (ishghandle (def) && isscalar (def) && def != 0)
     def = "";
   else
     if (ischar (def))