mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +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
@ -385,6 +385,19 @@ void MathData::updateMacros(Cursor * cur, MacroContext const & mc)
|
||||
if (!macroInset || macroInset->name_[0] == '^'
|
||||
|| 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);
|
||||
|
Loading…
Reference in New Issue
Block a user