diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/node.hxx | 2 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 0f4eb1b2fcb5..3ea66948dd23 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -1178,6 +1178,8 @@ public: /** Node used for alignment + * + * This node has exactly one child at index 0. */ class SmAlignNode : public SmStructureNode { diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 0c0de522f105..a4087e1240e9 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1010,7 +1010,7 @@ void SmParser::DoAlign() if (pSNode) { - pSNode->SetSubNodes(popOrZero(m_aNodeStack), 0); + pSNode->SetSubNode(0, popOrZero(m_aNodeStack)); m_aNodeStack.push_front(pSNode); } } |