X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMacroTable.cpp;h=20a713a513e15e1d3af377282e4cfe63d359cfe5;hb=573500dd04f154f27318ac5ec469a337f97fe9f0;hp=5c0604017bbc5ad46874a56a372778bb631443e7;hpb=ff4460603e3888948b46f0ab5bfa69a862d538ad;p=lyx.git diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp index 5c0604017b..20a713a513 100644 --- a/src/mathed/MacroTable.cpp +++ b/src/mathed/MacroTable.cpp @@ -152,7 +152,7 @@ void MacroData::updateData() const } -void MacroData::write(odocstream & os, bool overwriteRedefinition) const +int MacroData::write(odocstream & os, bool overwriteRedefinition) const { updateData(); @@ -160,14 +160,14 @@ void MacroData::write(odocstream & os, bool overwriteRedefinition) const Inset * inset = pos_.nextInset(); if (inset == 0 || inset->lyxCode() != MATHMACRO_CODE) { lyxerr << "BUG: No macro template found by MacroData" << endl; - return; + return 0; } // output template MathMacroTemplate const & tmpl = static_cast(*inset); WriteStream wi(os, false, true, WriteStream::wsDefault); - tmpl.write(wi, overwriteRedefinition); + return tmpl.write(wi, overwriteRedefinition); }