changeset 13940:bf209050014f

Use nargout = 0 in graphics callbacks specified as string. * src/graphics.cc (gh_manager::do_execute_callback): Call eval_string with nargout set to 0.
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 26 Nov 2011 21:59:04 +0000
parents fc6ebd31f40f
children 0f2835a6a995
files src/graphics.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/graphics.cc	Sat Nov 26 21:58:59 2011 +0000
+++ b/src/graphics.cc	Sat Nov 26 21:59:04 2011 +0000
@@ -7691,7 +7691,7 @@
           int status;
           std::string s = cb.string_value ();
 
-          eval_string (s, false, status);
+          eval_string (s, false, status, 0);
         }
       else if (cb.is_cell () && cb.length () > 0
                && (cb.rows () == 1 || cb.columns () == 1)