Clarify comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32051 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-11-16 14:11:25 +00:00
parent d3378a6b84
commit 935d1a3221

View File

@ -380,7 +380,7 @@ void MathData::drawT(TextPainter & pain, int x, int y) const
void MathData::updateMacros(Cursor * cur, MacroContext const & mc) void MathData::updateMacros(Cursor * cur, MacroContext const & mc)
{ {
// If we are editing a macro, we cannot update it immediately, // If we are editing a macro, we cannot update it immediately,
// as no undo steps will be recorded (bug 6208). // otherwise wrong undo steps will be recorded (bug 6208).
InsetMath const * inmath = cur ? cur->inset().asInsetMath() : 0; InsetMath const * inmath = cur ? cur->inset().asInsetMath() : 0;
MathMacro const * inmacro = inmath ? inmath->asMacro() : 0; MathMacro const * inmacro = inmath ? inmath->asMacro() : 0;
docstring const edited_name = inmacro ? inmacro->name() : docstring(); docstring const edited_name = inmacro ? inmacro->name() : docstring();