Kaydet (Commit) 2fb9c1ab authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

starmath: SmAlignNode has only one child

So, do not bother to extend its children array.

Change-Id: I9550501469aec5c4420f127ab64003c5ab14f9c1
Reviewed-on: https://gerrit.libreoffice.org/19089Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d68a0fc0
...@@ -1178,6 +1178,8 @@ public: ...@@ -1178,6 +1178,8 @@ public:
/** Node used for alignment /** Node used for alignment
*
* This node has exactly one child at index 0.
*/ */
class SmAlignNode : public SmStructureNode class SmAlignNode : public SmStructureNode
{ {
......
...@@ -1010,7 +1010,7 @@ void SmParser::DoAlign() ...@@ -1010,7 +1010,7 @@ void SmParser::DoAlign()
if (pSNode) if (pSNode)
{ {
pSNode->SetSubNodes(popOrZero(m_aNodeStack), 0); pSNode->SetSubNode(0, popOrZero(m_aNodeStack));
m_aNodeStack.push_front(pSNode); m_aNodeStack.push_front(pSNode);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment