mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
ddc06a6e29
commit
46af93a495
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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_) {
|
||||
|
Loading…
Reference in New Issue
Block a user