diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-02-12 20:08:11 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-02-12 20:08:11 (GMT) |
commit | 10b2b8fc694b60a17ccd2642f3a40c851e33b9da (patch) | |
tree | 9901c6f8603c20fd3422e9f068da1fb9cab13317 /src/docparser.cpp | |
parent | b107d3412b12c37a6b87c7315bc4039446cd3338 (diff) | |
download | Doxygen-10b2b8fc694b60a17ccd2642f3a40c851e33b9da.zip Doxygen-10b2b8fc694b60a17ccd2642f3a40c851e33b9da.tar.gz Doxygen-10b2b8fc694b60a17ccd2642f3a40c851e33b9da.tar.bz2 |
Improve formula handling and rendering.
Also added option HTML_FORMULA_FORMAT to generate SVG files for images (requires pdf2svg)
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 9348810..b3ae6bd 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2223,15 +2223,13 @@ bool DocXRefItem::parse() DocFormula::DocFormula(DocNode *parent,int id) : m_relPath(g_relPath) { - m_parent = parent; - QCString formCmd; - formCmd.sprintf("\\_form#%d",id); - Formula *formula=Doxygen::formulaNameDict->find(formCmd); - if (formula) + m_parent = parent; + QCString text = FormulaManager::instance().findFormula(id); + if (!text.isEmpty()) { - m_id = formula->getId(); + m_id = id; m_name.sprintf("form_%d",m_id); - m_text = formula->getFormulaText(); + m_text = text; } else // wrong \_form#<n> command { |