summaryrefslogtreecommitdiff
path: root/starmath/source/visitors.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r--starmath/source/visitors.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 87d177bcce1f..cf3e92ec3241 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -2185,9 +2185,9 @@ void SmNodeToTextVisitor::Visit( SmUnHorNode* pNode )
void SmNodeToTextVisitor::Visit( SmBinHorNode* pNode )
{
- SmNode *pLeft = pNode->GetSubNode( 0 ),
- *pOper = pNode->GetSubNode( 1 ),
- *pRight = pNode->GetSubNode( 2 );
+ SmNode *pLeft = pNode->LeftOperand(),
+ *pOper = pNode->Symbol(),
+ *pRight = pNode->RightOperand();
Separate( );
pLeft->Accept( this );
Separate( );