The branch, 2.0.x, has been updated.

- Log -----------------------------------------------------------------

commit abc8c6567f877f561bcace9ca093c15b3f53d5c1
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Sep 30 18:36:22 2012 +0200

    Trigger preview when inserting preview inset on selection
    (cherry picked from commit 31c7ccd4b3a8f75358ff29e96da8a1e6ac30bb9d)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 50a6d3d..58726bf 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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);
diff --git a/status.20x b/status.20x
index bf40ef4..5780767 100644
--- a/status.20x
+++ b/status.20x
@@ -56,6 +56,8 @@ What's new
 
 * USER INTERFACE
 
+- When selecting text and Insert > Preview, immediately display the
+  preview (bug #8075).
 
 
 * DOCUMENTATION AND LOCALIZATION

-----------------------------------------------------------------------

Summary of changes:
 src/Text3.cpp |    5 +++++
 status.20x    |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to