Don't open collapsable insets on mouse button 3 events.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4940 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-08-12 09:35:52 +00:00
parent ddc06a6e29
commit 46af93a495
3 changed files with 14 additions and 0 deletions

View File

@ -807,6 +807,9 @@ void BufferView::Pimpl::workAreaButtonRelease(int x, int y,
// they call the actions they have to do with the insetButtonRel.
// function and not in the edit(). This should be changed
// (Jug 20020329)
#ifdef WITH_WARNINGS
#warning Please remove donot call inset->edit() here (Jug 20020812)
#endif
inset_hit->edit(bv_, x, y, button);
}
return;

View File

@ -1,3 +1,8 @@
2002-08-12 Juergen Vigna <jug@sad.it>
* insetcollapsable.C (edit): ignore if entered when pressing mouse
button 3.
2002-08-12 Lars Gullik Bjønnes <larsbj@gullik.net>
* insetbib.C (bibitemMaxWidth): ParagraphList changes

View File

@ -237,6 +237,12 @@ void InsetCollapsable::draw(BufferView * bv, LyXFont const & f,
void InsetCollapsable::edit(BufferView * bv, int xp, int yp,
mouse_button::state button)
{
#ifdef WITH_WARNINGS
#warning Fix this properly in BufferView_pimpl::workAreaButtonRelease
#endif
if (button == mouse_button::button3)
return;
UpdatableInset::edit(bv, xp, yp, button);
if (collapsed_) {