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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #31931] figure (1, "visible", "off") -> Bus error
Date: Mon, 20 Dec 2010 08:44:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15)

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

I see now that my patch was not correct to assume that the grahics_handle
passed to do_update_canvas was a figure object.

I've attached an updated patch, diffs-2.txt that I think is better, but there
still seem to be some problems.  For example, I now see the following odd
behavior and I don't know how to fix it:


backend ("fltk")
figure (1, "visible", "off")
sombrero
figure (1, "visible", "on")   # no sombrero...
peaks                         # no peaks either...


Even if the current implementation loses plots that are generated when
visibility is off, I would expect plotting to resume working once visibility
is turned on.

If visibility is initially on, toggling works:


backend ("fltk")
figure (1)
sombrero
set (1, "visible", "off")   # figure window disappears
set (1, "visible", "on")    # figure reappears with sombrero
set (1, "visible", "off")   # figure disappears
peaks
set (1, "visible", "on")    # figure reappears with peaks plot


What is special about having the visible property off when the figure is
created?

(file #22243)
    _______________________________________________________

Additional Item Attachment:

File name: diffs-2.txt                    Size:2 KB


    _______________________________________________________

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]