[Top][All Lists]
[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: |
Mon, 09 Jan 2012 21:54:33 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7 |
Follow-up Comment #51, bug #31931 (project octave):
I didn't get the if-block correct in my last reply.
With the diff below
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,16 @@
if (rem (nargs, 2) == 0)
if (isnan (f) || init_new_figure)
- f = __go_figure__ (f, varargin{:});
+ if (ismac () && strcmp (graphics_toolkit, "fltk"))
+ ## FIXME: Hack for aqua-fltk to work around bug #31931
+ f = __go_figure__ (f);
+ drawnow ();
+ if (! isempty (varargin))
+ set (f, varargin{:});
+ endif
+ else
+ f = __go_figure__ (f, varargin{:});
+ endif
elseif (nargs > 0)
set (f, varargin{:});
endif
The code below works as expected.
graphics_toolkit ("fltk");
figure (1, "visible", "off")
set (gcf, "visible", "on")
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31931>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/