diff --git a/ChangeLog b/ChangeLog index 790c4cba9c..d84f2003f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-15 Jean-Marc Lasgouttes + + * src/insets/insettext.C (InsetButtonPress): fix crash when + opening an inset inside a table cell + 2002-03-12 Jean-Marc Lasgouttes * lib/kbd/bg-bds-1251.kmap: new kbmap for bulgarian diff --git a/src/insets/insettext.C b/src/insets/insettext.C index 2a97555ed1..240309ab3b 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -620,7 +620,7 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button) the_locking_inset->InsetUnlock(bv); inset_x = cx(bv) - top_x + drawTextXOffset; inset_y = cy(bv) + drawTextYOffset; - the_locking_inset = static_cast(inset); + the_locking_inset = 0; inset->InsetButtonPress(bv, x - inset_x, y - inset_y, button); inset->Edit(bv, x - inset_x, y - inset_y, button); if (the_locking_inset) {