From 46af93a49561b1e23957d5c42ccab71daa8c2685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Vigna?= Date: Mon, 12 Aug 2002 09:35:52 +0000 Subject: [PATCH] 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 --- src/BufferView_pimpl.C | 3 +++ src/insets/ChangeLog | 5 +++++ src/insets/insetcollapsable.C | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index cc62864631..d0e77c5d1f 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -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; diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 99ad58f346..928f8e3316 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-08-12 Juergen Vigna + + * insetcollapsable.C (edit): ignore if entered when pressing mouse + button 3. + 2002-08-12 Lars Gullik Bjønnes * insetbib.C (bibitemMaxWidth): ParagraphList changes diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 0cbc128b3a..1fe588517e 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -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_) {