MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / addImpl

Method addImpl

src/core/formula.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void TeXFormula::addImpl(const TeXFormula* f) {
176 if (f != nullptr) {
177 RowAtom* rm = dynamic_cast<RowAtom*>(f->_root.get());
178 if (rm != nullptr)
179 add(sptr<Atom>(new RowAtom(f->_root)));
180 else
181 add(f->_root);
182 }
183}
184
185sptr<Box> TeXFormula::createBox(_out_ TeXEnvironment& style) {
186 if (_root == nullptr) return sptr<Box>(new StrutBox(0, 0, 0, 0));

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected