changeset 25467:c3d9e9d965d3

maint: Merge stable to default.
author John W. Eaton <jwe@octave.org>
date Wed, 13 Jun 2018 02:16:07 -0400
parents 26164f8a734a (current diff) f09f7c7815e3 (diff)
children e959d4b33eb1
files
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/text.m	Wed Jun 13 02:11:31 2018 -0400
+++ b/scripts/plot/appearance/text.m	Wed Jun 13 02:16:07 2018 -0400
@@ -74,7 +74,7 @@
   else  # Only PROP/VALUE pairs
     x = y = z = 0;
     nx = ny = nz = 1;
-    string = {""};
+    string = "";
   endif
 
   ## Any remaining inputs must occur as PROPERTY/VALUE pairs
@@ -366,6 +366,15 @@
 %!   close (hf);
 %! end_unwind_protect
 
+%!test <*54109>
+%! hf = figure ("visible", "off");
+%! unwind_protect
+%!   ht = text ();
+%!   assert (get (ht, "string"), "");
+%! unwind_protect_cleanup
+%!   close (hf);
+%! end_unwind_protect
+
 ## Test input validation
 %!error <X, Y, and Z coordinates must match> text (1, [2 3], "foobar")
 %!error <X, Y, and Z coordinates must match> text (1, 2, [3 4], "foobar")