I wrote:
Jorge wrote:
On Mon, Sep 29, 2008 at 05:49:44PM +0000, corvid wrote:
Jorge wrote:
On Mon, Sep 29, 2008 at 02:09:36PM +0000, corvid wrote:
Jorge wrote:
On Sun, Sep 28, 2008 at 12:52:47AM +0000, corvid wrote: > Playing with the file menu, I see that Alt-W, Alt-E, Alt-X, Alt-C > all segfault. I thought somebody said something (that I didn't pay > attention to) about the file menu since tabs were added, but if so, > I can't find that mail.
Please check the patch in CVS.
FLTK2 has a bug in that it regards the first menu item letter as a shortcut.
Note: I tried with invisible shortcuts doing nothing, removing shortcuts and all that stuff, until I found this way to workaround the problem.
Note2: Alt-W and Alt-X are accelerators, so they're OK.
AFAIS there's no more segfault here.
Alt-W and Alt-X still segfault for me.
Does anybody else see this bug?
Here's the backtrace that I get:
#0 0x080c9df0 in fltk::Widget::any_of (this=0x70, f=4864) at ../fltk/Widget.h:143 #1 0x080c9e3c in fltk::Widget::takesevents (this=0x70) at ../fltk/Widget.h:168 #2 0x080e43c4 in fltk::Widget::take_focus (this=0x70) at run.cxx:152 #3 0x080d6bc5 in fltk::MenuBar::handle (this=0x816a5a0, event=12) at MenuBar.cxx:94
[snip] MenuBar.cxx:93 went as follows: #0 a_UIcmd_close_bw (vbw=0x81b1958) at uicmd.cc:232 #1 0x08055bc9 in a_UIcmd_close_all_bw () at uicmd.cc:259 #2 0x08051c58 in menubar_cb (wid=0x8166288, data=0x810df5d) at ui.cc:477 #3 0x080d643a in fltk::Menu::popup () at Widget.cxx:49 #4 0x080d6cb9 in fltk::MenuBar::handle (this=0x816a440, event=12) at MenuBar.cxx:93 so MenuBar and its lastfocus_ are dead by line 94. There seems to be a pattern emerging lately :)