Allan Rae wrote:
> 
> On Wed, 21 Jul 1999, Jean-Marc Lasgouttes wrote:
[...]
> > I'm not sure whether the bug is in xforms or in the math panel. It
> > depends on what the xforms manual says :)
> 
> I'll take a look at this one. It's a problem in the math panel:  when the
> math panel is closed it frees the subpanels and itself however if one of
> the subpanels is still visible (depending on the xforms version) you
> either crash or get a "Freeing visible form" warning message with the
> option to continue or crash.


Okay, here's a little one liner.   I'd commit it to cvs only I can't
seem to get into my machine at Uni to do that (have to wait for
tomorrow or some kind soul here ;-)

-- 
Allan. (ARRae)


diff -p -N -r -U 4 -X excl.tmp lyx-1_0_x/src/math_symbols.C 
lyx-1_0_x.1/src/math_symbols.C
--- lyx-1_0_x/src/math_symbols.C        Mon Feb  1 12:24:50 1999
+++ lyx-1_0_x.1/src/math_symbols.C      Thu Jul 22 21:54:40 1999
@@ -160,8 +160,9 @@ BitmapMenu::BitmapMenu(int n,  FL_OBJECT
 }
 
 BitmapMenu::~BitmapMenu() {
  if (next) delete next;
+ if (form->visible) Hide();
  fl_free_form(form);  
  delete[] bitmap;
 }

Reply via email to