The branch, master, has been updated.

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

commit 31c7ccd4b3a8f75358ff29e96da8a1e6ac30bb9d
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Sep 30 18:36:22 2012 +0200

    Trigger preview when inserting preview inset on selection

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 78d7429..b114cf2 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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);

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

Summary of changes:
 src/Text3.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to