starmath/source/mathtype.cxx |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

New commits:
commit 97710bbf1df975e896839cd78a34bdab7be7622a
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sun Jun 4 09:18:16 2023 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Jun 4 11:02:01 2023 +0200

    MathType::HandleNodes: SmNodeType::Expression does the same as default one
    
    Change-Id: I0b7b17bf93470ac07f53c656f91f12b1cec4cd7c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152584
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index a3199c06c686..56a666b969f3 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1976,16 +1976,6 @@ void MathType::HandleNodes(SmNode *pNode,int nLevel)
         case SmNodeType::SubSup:
             HandleSubSupScript(pNode,nLevel);
             break;
-        case SmNodeType::Expression:
-        {
-            size_t nSize = pNode->GetNumSubNodes();
-            for (size_t i = 0; i < nSize; ++i)
-            {
-                if (SmNode *pTemp = pNode->GetSubNode(i))
-                    HandleNodes(pTemp,nLevel+1);
-            }
-            break;
-        }
         case SmNodeType::Table:
             //Root Node, PILE equivalent, i.e. vertical stack
             HandleTable(pNode,nLevel);
@@ -2017,6 +2007,7 @@ void MathType::HandleNodes(SmNode *pNode,int nLevel)
             else
                 pS->WriteUInt16( 0xEB05 );
             break;
+        case SmNodeType::Expression: // same treatment as the default one
         default:
         {
             size_t nSize = pNode->GetNumSubNodes();

Reply via email to