mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
fix bug #7088
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:
parent
ca69246a27
commit
d2d0994cf9
@ -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().
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user