mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
* Nearly a proof that there are useful compiler warnings that a variable is not used,
though in this case the warning was "fixed" before it did its job. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
afa6389644
commit
e0538043e4
@ -2076,7 +2076,7 @@ void Buffer::writeParentMacros(odocstream & os) const
|
||||
MacroData const * data =
|
||||
d->parent_buffer->getMacro(*it, *this, false);
|
||||
if (data)
|
||||
data->write(os, true);
|
||||
data->write(os, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user