mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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)
|
||||
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().
|
||||
|
Loading…
Reference in New Issue
Block a user