changeset 23264:c3c26f6a7812

__gnuplot_draw_axes__.m: Use try/catch rather than unwind protect in 589e4e4548e1. * __gnuplot_draw_axes__.m: Use try/catch rather than unwind protect around temporary fix for legends in gnuplot.
author Rik <rik@octave.org>
date Fri, 10 Mar 2017 18:32:50 -0800
parents be761cce7de0
children 44d51b2b691c
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Mar 10 16:29:55 2017 -0800
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Fri Mar 10 18:32:50 2017 -0800
@@ -508,12 +508,11 @@
     ## FIXME: Temporary workaround to add hidden interpreter property back.
     ##        Delete when bug #50496 is fixed.
     wstate = warning ("query", "Octave:deprecated-property");
-    unwind_protect 
+    try 
       warning ("off", "Octave:deprecated-property");
       obj.interpreter = get (h_obj, "interpreter");
-    unwind_protect_cleanup
-      warning (wstate);
-    end_unwind_protect
+    end_try_catch
+    warning (wstate);
 
     if (isfield (obj, "xdata"))
       obj.xdata = double (obj.xdata);