]> git.lyx.org Git - features.git/commitdiff
Don't open collapsable insets on mouse button 3 events.
authorJürgen Vigna <jug@sad.it>
Mon, 12 Aug 2002 09:35:52 +0000 (09:35 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 12 Aug 2002 09:35:52 +0000 (09:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4940 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/insets/ChangeLog
src/insets/insetcollapsable.C

index cc628646318e7aba4f0e2b0f5985ef60331806fc..d0e77c5d1f12a6a3b70d9b97d9adc6db4711fd9b 100644 (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;
index 99ad58f346b90c9a9cd116b069175d1aa76b302a..928f8e3316eb75e063bbcddd9a872071df66d651 100644 (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
index 0cbc128b3ac528dee469303c118e41e985a0b780..1fe588517ec78b493f18e2cd7f96554ca4cf7e31 100644 (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_) {