mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix wrong LATTEST
Thanks to Scott for testing. If a macro is unknown (displayed in red), then macro_ is 0. The LATTEST is now adjusted and works like in MathMacro::write() where I stole it from.
This commit is contained in:
parent
31a2cb5ed2
commit
bc8638bd25
@ -793,7 +793,8 @@ void MathMacro::maple(MapleStream & os) const
|
||||
|
||||
void MathMacro::mathmlize(MathStream & os) const
|
||||
{
|
||||
LATTEST(macro_);
|
||||
// macro_ is 0 if this is an unknown macro
|
||||
LATTEST(macro_ || displayMode_ != DISPLAY_NORMAL);
|
||||
if (macro_) {
|
||||
docstring const xmlname = macro_->xmlname();
|
||||
if (!xmlname.empty()) {
|
||||
@ -814,7 +815,8 @@ void MathMacro::mathmlize(MathStream & os) const
|
||||
|
||||
void MathMacro::htmlize(HtmlStream & os) const
|
||||
{
|
||||
LATTEST(macro_);
|
||||
// macro_ is 0 if this is an unknown macro
|
||||
LATTEST(macro_ || displayMode_ != DISPLAY_NORMAL);
|
||||
if (macro_) {
|
||||
docstring const xmlname = macro_->xmlname();
|
||||
if (!xmlname.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user