]> git.lyx.org Git - features.git/commit
Fix bug 4166: Crash when middle button click on inset label
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Aug 2008 14:13:16 +0000 (14:13 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 12 Aug 2008 14:13:16 +0000 (14:13 +0000)
commit45312b5f491734c5f35b920ed5e88bdd1ee7fa33
tree4fb946fd0d247f91d4145a9e529a281f1cec0bff
parent2d76d3a0c6459ffc8206afad8459988e855e8c1b
Fix bug 4166: Crash when middle button click on inset label
http://bugzilla.lyx.org/show_bug.cgi?id=4662

* InsetCollapsable.cpp (doDispatch): cleanup the handling of mouse-
related lfuns. The new behavior is as follows:
- everything that does not touch the button is sent to the insettext,
if it is visible, and delegated to enclosing inset instead
- mouse1-press is delegated to enclosing inset (which will set the
cursor)
- the rest is either acted upon or results on a mere cur.noUpdate().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26122 a592a061-630c-0410-9148-cb99ea01b6c8
src/insets/InsetCollapsable.cpp
src/insets/InsetCollapsable.h