The branch, 2.0.x, has been updated.

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

commit 12a575cc39442e8da3eab496fb45234e3012ed54
Author: Vincent van Ravesteijn <v...@lyx.org>
Date:   Sun Sep 23 16:44:22 2012 +0200

    Fix bug #8296: Crash when clicking on completion in math
    
    When the user clicks on the completion, the completion disappears. This
    means that we have to fix the cursor before setting it.

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 8130db3..057fe0b 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2443,6 +2443,8 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
                cap::saveSelection(cursor());
 
        d->cursor_.macroModeClose();
+       // If a macro has been finalized, the cursor might have been broken
+       cur.fixIfBroken();
 
        // Has the cursor just left the inset?
        bool const leftinset = (&d->cursor_.inset() != &cur.inset());
diff --git a/status.20x b/status.20x
index 07b42a7..6ad00b8 100644
--- a/status.20x
+++ b/status.20x
@@ -105,6 +105,8 @@ What's new
 
 * USER INTERFACE
 
+- Fix crash when clicking on a completion in math mode (bug 8296).
+
 - Fix regression in which clicking in the main work area always resets
   the selected format in View -> Source (bug 8411).
   

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

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


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to