mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Trigger preview when inserting preview inset on selection
(cherry picked from commit 31c7ccd4b3
)
This commit is contained in:
parent
7b155bfdb8
commit
abc8c6567f
@ -283,7 +283,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);
|
||||
|
@ -56,6 +56,8 @@ What's new
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
- When selecting text and Insert > Preview, immediately display the
|
||||
preview (bug #8075).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
Loading…
Reference in New Issue
Block a user