mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix bug #7088
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36557 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c5799b7019
commit
c8ec2c0a03
@ -1109,10 +1109,14 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
if (have_l)
|
if (have_l)
|
||||||
cur.insert(MathAtom(new InsetMathBig(lname,
|
cur.insert(MathAtom(new InsetMathBig(lname,
|
||||||
ldelim)));
|
ldelim)));
|
||||||
cur.niceInsert(selection);
|
// first insert the right delimiter and then go back
|
||||||
if (have_r)
|
// and re-insert the selection (bug 7088)
|
||||||
|
if (have_r) {
|
||||||
cur.insert(MathAtom(new InsetMathBig(rname,
|
cur.insert(MathAtom(new InsetMathBig(rname,
|
||||||
rdelim)));
|
rdelim)));
|
||||||
|
cur.posBackward();
|
||||||
|
}
|
||||||
|
cur.niceInsert(selection);
|
||||||
}
|
}
|
||||||
// Don't call cur.undispatched() if we did nothing, this would
|
// Don't call cur.undispatched() if we did nothing, this would
|
||||||
// lead to infinite recursion via Text::dispatch().
|
// lead to infinite recursion via Text::dispatch().
|
||||||
|
Loading…
Reference in New Issue
Block a user