[LyX/master] MathML in HTML: in case of conversion failure, add a comment
Thibaut Cuvelier
tcuvelier at lyx.org
Fri Jan 20 00:59:12 UTC 2023
commit 598c6a0a879f604703f7fd9ce5d6a3fd03c983ef
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Fri Jan 20 02:45:20 2023 +0100
MathML in HTML: in case of conversion failure, add a comment
---
src/mathed/InsetMathHull.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index f043882..0bb9b8e 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -2648,6 +2648,7 @@ docstring InsetMathHull::xhtml(XMLStream & xs, OutputParams const & op) const
xs << xml::CR();
xs << xml::EndTag("math") << xml::CR();
}
+ // In case of failure, generate an image.
} else if (mathtype == BufferParams::HTML) {
odocstringstream os;
HtmlStream ms(os);
@@ -2662,6 +2663,7 @@ docstring InsetMathHull::xhtml(XMLStream & xs, OutputParams const & op) const
<< os.str()
<< xml::EndTag(tag);
}
+ // In case of failure, generate an image.
}
// what we actually want is this:
@@ -2676,7 +2678,7 @@ docstring InsetMathHull::xhtml(XMLStream & xs, OutputParams const & op) const
//
// so this is for Images.
if (!success && mathtype != BufferParams::LaTeX) {
- graphics::PreviewImage const * pimage = 0;
+ graphics::PreviewImage const * pimage = nullptr;
if (!op.dryrun) {
loadPreview(docit_);
pimage = preview_->getPreviewImage(buffer());
More information about the lyx-cvs
mailing list