diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-10-02 13:14:57 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-02 06:25:19 +0000 |
commit | 2fb9c1abbd8fa786a777511f20eeb95313ff4b1d (patch) | |
tree | fb02989edb51d05d1448834a465c3d08c5874f41 /starmath | |
parent | d68a0fc050ea4d57e15246f8e71781cd42ebdaa1 (diff) |
starmath: SmAlignNode has only one child
So, do not bother to extend its children array.
Change-Id: I9550501469aec5c4420f127ab64003c5ab14f9c1
Reviewed-on: https://gerrit.libreoffice.org/19089
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
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); } } |