From db71db23cedf3fb927b2814a2b75c9fbe1ae6cbc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 17 Jan 2007 15:24:01 +0000 Subject: [PATCH] * BufferView.C (mouseSetCursor): if the cursor was in an empty script inset and the new position is in the nucleus of the inset, notifyCursorLeaves will kill the script inset itself. So we check all the elements of the cursor to make sure that they are correct (bug 2933). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16728 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.C | 19 ++++++++++++++++++- src/ChangeLog | 8 ++++++++ status.14x | 27 +++++++++++++-------------- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/src/BufferView.C b/src/BufferView.C index 95007c9ec7..cb179a4ddf 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -336,7 +336,24 @@ void BufferView::mouseSetCursor(LCursor & cur) if (!badcursor && cursor().inTexted()) cursor().text()->deleteEmptyParagraphMechanism(cur, cursor()); - cursor() = cur; + // if the cursor was in an empty script inset and the new + // position is in the nucleus of the inset, notifyCursorLeaves + // will kill the script inset itself. So we check all the + // elements of the cursor to make sure that they are correct. + // For an example, see bug 2933: + // http://bugzilla.lyx.org/show_bug.cgi?id=2933 + // The code below could maybe be moved to a DocIterator method. + //lyxerr << "cur before " << cur < + + * BufferView.C (mouseSetCursor): if the cursor was in an empty + script inset and the new position is in the nucleus of the inset, + notifyCursorLeaves will kill the script inset itself. So we check + all the elements of the cursor to make sure that they are correct + (bug 2933). + 2006-12-29 Jean-Marc Lasgouttes * bufferparams.C (writeLaTeX): diff --git a/status.14x b/status.14x index eba7c40865..d52e4de626 100644 --- a/status.14x +++ b/status.14x @@ -19,12 +19,18 @@ What's new ** Updates: -- Outline support. +- Outline support: it is now possible to move around parts of + documents in the Table of Contents dialog. -- Improve Computer Algebra System support. +- Improve Computer Algebra System support in math editor. - Add support for fixed size math delimiters in math editor. +- Convert included vector graphics to pdf instead of png for pdflatex export + (bug 2868). This is implemented with the help of a new format flag "vector" + that you have to set manually for your self defined vector graphics formats + if you want to use this feature. + - Add a wmf -> eps converter (bug 2845) and a latex -> rtf converter. - The layout lfun without an argument does now set the layout to the default @@ -41,13 +47,9 @@ What's new - New external template for LilyPond (a music typesetter). -- New manual Extended-Insets available in English and Spanish. It describes - in detail how to work with tables, graphics, floats, notes, and boxes - -- Updated documentation Intro.lyx - -- Updated ifpdf documentation in Extended.lyx (+ small grammar and - spelling fixes) +- New manual ExtendedInsets available in English and Spanish. It describes + in detail how to work with tables, graphics, floats, notes, and + boxes; Update Intro and Extended manual (describe ifpdf package). - New Galician localization; update German, Hungarian and Romanian localization of the interface. @@ -56,10 +58,6 @@ What's new Tutorial); Update German (all), Hebrew (Intro) and Italian (Tutorial, UserGuide) documentation. -- Convert included vector graphics to pdf instead of png for pdflatex export - (bug 2868). This is implemented with the help of a new format flag "vector" - that you have to set manually for your self defined vector graphics formats - if you want to use this feature. ** Bug fixes: @@ -114,7 +112,8 @@ What's new windows). This fix was already used by the official windows installer for 1.4.3. -- Fix crash when exiting empty superscript in math editor (bug 2908). +- Fix crash when exiting empty superscript in math editor (bugs 2908 + and 2933). - Fix an undo crash crash with nested font changes in math (bug 3019).