mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Trigger preview when inserting preview inset on selection
This commit is contained in:
parent
3588f2f696
commit
31c7ccd4b3
@ -294,7 +294,12 @@ static bool doInsertInset(Cursor & cur, Text * text,
|
||||
// Merge multiple paragraphs -- hack
|
||||
while (cur.lastpit() > 0)
|
||||
mergeParagraph(bparams, cur.text()->paragraphs(), 0);
|
||||
Cursor old = cur;
|
||||
cur.leaveInset(*inset);
|
||||
if (cmd.action() == LFUN_PREVIEW_INSERT
|
||||
|| cmd.action() == LFUN_IPA_INSERT)
|
||||
// trigger preview
|
||||
notifyCursorLeavesOrEnters(old, cur);
|
||||
}
|
||||
} else {
|
||||
cur.leaveInset(*inset);
|
||||
|
Loading…
Reference in New Issue
Block a user