]> git.lyx.org Git - features.git/commit
Fix bug #7345: Crash when right clicking on displayed math with selection
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 19 Mar 2011 13:14:13 +0000 (13:14 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 19 Mar 2011 13:14:13 +0000 (13:14 +0000)
commit49459f6fc45cd0802cb257f7db019d2c294da78c
tree4e540bb7be1d3771df85de1ce6b1d10d0965ad31
parent72ad0bdfbf380743c9c5705f29ba62042e4360b1
Fix bug #7345: Crash when right clicking on displayed math with selection

Two things have been fixed here:
1) the selection should not be cleared when the user right clicks a math inset that is part of the selection,
2) the type of context menu should be determined at mouse-press, because that is the moment when the cursor is set. However, we should do it after setting the cursor, because setting the cursor might change the selection status and this influences the choice for the type of context menu.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37961 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/GuiWorkArea.cpp
src/mathed/InsetMathNest.cpp