git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36719 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2010-12-04 16:55:00 +00:00
parent ca69246a27
commit d2d0994cf9
2 changed files with 9 additions and 2 deletions

View File

@ -1040,10 +1040,14 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
if (have_l)
cur.insert(MathAtom(new InsetMathBig(lname,
ldelim)));
cur.niceInsert(selection);
if (have_r)
// first insert the right delimiter and then go back
// and re-insert the selection (bug 7088)
if (have_r) {
cur.insert(MathAtom(new InsetMathBig(rname,
rdelim)));
cur.posBackward();
}
cur.niceInsert(selection);
}
// Don't call cur.undispatched() if we did nothing, this would
// lead to infinite recursion via Text::dispatch().

View File

@ -99,6 +99,9 @@ What's new
- Fix the painting of non-InsetText insets with a transparent
background as well as the description of an InsetCaption (bug 4889).
- Fix unexpected behavior when inserting big math delimiters around a matrix
(bug 7088).
* DOCUMENTATION AND LOCALIZATION