mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21574 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
038d2b494e
commit
066de606d2
@ -565,8 +565,11 @@ void MathData::attachMacroParameters(Cursor & cur,
|
||||
// remove them from the MathData
|
||||
erase(begin() + macroPos + 1, begin() + p);
|
||||
|
||||
// fix up cursor
|
||||
if (thisSlice != -1) {
|
||||
|
||||
// no need to update the cursor?
|
||||
if (thisSlice == -1)
|
||||
return;
|
||||
|
||||
// fix cursor if right of p
|
||||
if (thisPos >= int(p))
|
||||
cur[thisSlice].pos() -= p - (macroPos + 1);
|
||||
@ -581,7 +584,6 @@ void MathData::attachMacroParameters(Cursor & cur,
|
||||
cur.push_back(CursorSlice(*macroInset));
|
||||
macroInset->idxFirst(cur);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user