From 17e46bb2b0b6a88834d952a869c921cbdd62710c Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 19 Mar 2002 13:29:32 +0000 Subject: [PATCH] fix possible problem when opening inset inside table cell git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3777 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/insets/insettext.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) {