starmath/inc/node.hxx | 2 ++ starmath/source/parse.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2fb9c1abbd8fa786a777511f20eeb95313ff4b1d Author: Takeshi Abe <[email protected]> Date: Fri Oct 2 13:14:57 2015 +0900 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 <[email protected]> Tested-by: Noel Grandin <[email protected]> diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 0f4eb1b..3ea6694 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 0c0de52..a4087e1 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); } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
