Style: insetCur -> inset_cursor

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32049 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-11-16 13:31:01 +00:00
parent 7594bd4852
commit d3378a6b84

View File

@ -633,14 +633,14 @@ bool MathMacro::notifyCursorLeaves(Cursor const & old, Cursor & cur)
docstring const & unfolded_name = name(); docstring const & unfolded_name = name();
if (unfolded_name != name_) { if (unfolded_name != name_) {
// The macro name was changed // The macro name was changed
Cursor insetCur = old; Cursor inset_cursor = old;
int macroSlice = insetCur.find(this); int macroSlice = inset_cursor.find(this);
LASSERT(macroSlice != -1, /**/); LASSERT(macroSlice != -1, /**/);
insetCur.cutOff(macroSlice); inset_cursor.cutOff(macroSlice);
insetCur.recordUndoInset(); inset_cursor.recordUndoInset();
insetCur.pop(); inset_cursor.pop();
insetCur.cell().erase(insetCur.pos()); inset_cursor.cell().erase(inset_cursor.pos());
insetCur.cell().insert(insetCur.pos(), inset_cursor.cell().insert(inset_cursor.pos(),
createInsetMath(unfolded_name, cur.buffer())); createInsetMath(unfolded_name, cur.buffer()));
cur.updateFlags(cur.disp_.update() | Update::SinglePar); cur.updateFlags(cur.disp_.update() | Update::SinglePar);
return true; return true;