mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30410 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
98fb455d3f
commit
6852e976b0
@ -386,6 +386,19 @@ void MathData::updateMacros(Cursor * cur, MacroContext const & mc)
|
||||
|| macroInset->name_[0] == '_')
|
||||
continue;
|
||||
|
||||
if (macroInset->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
|
||||
docstring const & unfolded_name = macroInset->name();
|
||||
if (unfolded_name != macroInset->name_) {
|
||||
// macro name was changed
|
||||
cur->recordUndoInset();
|
||||
cur->leaveInset(*macroInset);
|
||||
cur->plainErase();
|
||||
cur->insert(MathAtom(new InsetMathUnknown('\\'
|
||||
+ unfolded_name, docstring(), false)));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// get macro
|
||||
macroInset->updateMacro(mc);
|
||||
size_t macroNumArgs = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user