]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.cpp
* src/frontends/GuiDocument.{cpp,h}:
[lyx.git] / src / mathed / MathMacroTemplate.cpp
index 85301fbfe091ad9c86c77c4d4339f6e4c4aaf10e..b7ecb9bbc535511fec76a8662dddf88af316d60b 100644 (file)
@@ -970,13 +970,13 @@ void MathMacroTemplate::write(WriteStream & os) const
 }
 
 
-void MathMacroTemplate::write(WriteStream & os, bool /*overwriteRedefinition*/) const
+void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) const
 {
        // newcommand or renewcommand
        if (os.latex() && optionals_ > 1)
                os << "\\newlyxcommand";
        else {
-               if (redefinition_)
+               if (redefinition_ && !overwriteRedefinition)
                        os << "\\renewcommand";
                else
                        os << "\\newcommand";