changeset 21543:4f0f9f029d12

Draw updates to GUI at end of GUI callback function (bug #47216) * graphics.cc (do_execute_callback): Fdrawnow if Vdrawnow_requested.
author Lachlan Andrew <lachlanbis@gmail.com>
date Mon, 22 Feb 2016 13:18:02 +1100
parents 7ba48ff6ce83
children 30bf9a4d467a
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Fri Feb 26 09:52:43 2016 +1100
+++ b/libinterp/corefcn/graphics.cc	Mon Feb 22 13:18:02 2016 +1100
@@ -9339,6 +9339,12 @@
 
       if (fcn)
         feval (fcn, args);
+
+      if (Vdrawnow_requested)
+        {
+          Fdrawnow ();
+          Vdrawnow_requested = false;
+        }
     }
 }