fix bug 1797 (again!)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9858 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-04-22 14:59:13 +00:00
parent 27efdd922d
commit 625194dc63
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetcollapsable.C (doDispatch): do not pass through double/triple
click events when they are not in the insetext (bug 1797).
2005-04-22 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetbase.h: document a bit more

View File

@ -299,6 +299,8 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
break;
case LFUN_MOUSE_MOTION:
case LFUN_MOUSE_DOUBLE:
case LFUN_MOUSE_TRIPLE:
if (status_ == Inlined)
InsetText::doDispatch(cur, cmd);
else if (status_ == Open && !hitButton(cmd))