[Libreoffice-commits] core.git: starmath/inc starmath/source

Takeshi Abe tabe at fixedpoint.jp
Thu Oct 1 23:25:41 PDT 2015


 starmath/inc/node.hxx     |    2 ++
 starmath/source/parse.cxx |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 2fb9c1abbd8fa786a777511f20eeb95313ff4b1d
Author: Takeshi Abe <tabe at fixedpoint.jp>
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 <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

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);
     }
 }


More information about the Libreoffice-commits mailing list