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
This commit is contained in:
Jean-Marc Lasgouttes 2002-03-19 13:29:32 +00:00
parent 1de1f55aa1
commit 17e46bb2b0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* src/insets/insettext.C (InsetButtonPress): fix crash when
opening an inset inside a table cell
2002-03-12 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lib/kbd/bg-bds-1251.kmap: new kbmap for bulgarian

View File

@ -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<UpdatableInset*>(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) {