]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacro.cpp
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / MathMacro.cpp
index 3d5b8fec62dc897fc588c2b7ff25bfbdf821d575..cd9b757a51742385a883a283ccd1d68913d59e8b 100644 (file)
@@ -311,7 +311,8 @@ void MathMacro::updateMacro(MacroContext const & mc)
 }
 
 
-void MathMacro::updateRepresentation()
+void MathMacro::updateRepresentation(Cursor * cur, MacroContext const & mc,
+               UpdateType utype)
 {
        // known macro?
        if (macro_ == 0)
@@ -342,6 +343,8 @@ void MathMacro::updateRepresentation()
        }
        // expanding macro with the values
        macro_->expand(values, expanded_.cell(0));
+       if (utype == OutputUpdate && !expanded_.cell(0).empty())
+               expanded_.cell(0).updateMacros(cur, mc, utype);
        // get definition for list edit mode
        docstring const & display = macro_->display();
        asArray(display.empty() ? macro_->definition() : display, definition_);