octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31931] figure (1, "visible", "off") -> Bus er


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #31931] figure (1, "visible", "off") -> Bus error
Date: Tue, 13 Dec 2011 20:19:50 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Follow-up Comment #45, bug #31931 (project octave):

If I type those command, I get no crash. If they are part of a script, then I
get a crash.

The change below prevents the crash, but I don't think this is a proper
solution.


diff --git a/scripts/plot/figure.m b/scripts/plot/figure.m
--- a/scripts/plot/figure.m
+++ b/scripts/plot/figure.m
@@ -63,7 +63,11 @@
 
   if (rem (nargs, 2) == 0)
     if (isnan (f) || init_new_figure)
-      f = __go_figure__ (f, varargin{:});
+      f = __go_figure__ (f);
+      drawnow ();
+      if (! isempty (varargin))
+        set (f, varargin{:});
+      endif
     elseif (nargs > 0)
       set (f, varargin{:});
     endif


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31931>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]