| 173 | } |
| 174 | |
| 175 | void 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 | |
| 185 | sptr<Box> TeXFormula::createBox(_out_ TeXEnvironment& style) { |
| 186 | if (_root == nullptr) return sptr<Box>(new StrutBox(0, 0, 0, 0)); |