mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +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
|
// Merge multiple paragraphs -- hack
|
||||||
while (cur.lastpit() > 0)
|
while (cur.lastpit() > 0)
|
||||||
mergeParagraph(bparams, cur.text()->paragraphs(), 0);
|
mergeParagraph(bparams, cur.text()->paragraphs(), 0);
|
||||||
|
Cursor old = cur;
|
||||||
cur.leaveInset(*inset);
|
cur.leaveInset(*inset);
|
||||||
|
if (cmd.action() == LFUN_PREVIEW_INSERT
|
||||||
|
|| cmd.action() == LFUN_IPA_INSERT)
|
||||||
|
// trigger preview
|
||||||
|
notifyCursorLeavesOrEnters(old, cur);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cur.leaveInset(*inset);
|
cur.leaveInset(*inset);
|
||||||
|
@ -56,6 +56,8 @@ What's new
|
|||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
- When selecting text and Insert > Preview, immediately display the
|
||||||
|
preview (bug #8075).
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
Loading…
Reference in New Issue
Block a user