mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix regression of 359aef92f8
The context menu of newline insets was completely greyed out if one clicked at the right of the inset. Thanks Scott for finding this. The fix is to undo the cursor movement also for insets without settings, but with a context menu.
This commit is contained in:
parent
0434f5676a
commit
4bab2ab5f8
@ -2203,7 +2203,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
||||
// inset (depending on cmd.x(), cmd.y()). This is needed for
|
||||
// editing to fix bug 9628, but e.g. the context menu needs a
|
||||
// cursor in front of the inset.
|
||||
if (inset->hasSettings() &&
|
||||
if ((inset->hasSettings() || !inset->contextMenuName().empty()) &&
|
||||
cur.nextInset() != inset && cur.prevInset() == inset)
|
||||
cur.posBackward();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user