diff options
author | Luke Dixon <6b8b4567@gmail.com> | 2010-12-19 15:24:46 +0000 |
---|---|---|
committer | Jonas Finnemann Jensen <jopsen@gmail.com> | 2010-12-19 17:15:55 +0100 |
commit | d80b166d6aa125fd639d282ab5d00d1594448d98 (patch) | |
tree | c4faae9ee0635b978df6f61bfe088447b76858dd /starmath/source/visitors.cxx | |
parent | 72228b8893f43443c6ef0c98514e3ef4bdb0f9b0 (diff) |
Put brackets around binoms in SmNodeToTextVisitor, with test
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r-- | starmath/source/visitors.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 2e7e4e3d3244..fbdb379f2c62 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -2163,9 +2163,10 @@ void SmSelectionDrawingVisitor::Visit( SmTextNode* pNode ) void SmNodeToTextVisitor::Visit( SmTableNode* pNode ) { if( pNode->GetToken( ).eType == TBINOM ) { - Append( "binom" ); + Append( "{ binom" ); LineToText( pNode->GetSubNode( 0 ) ); LineToText( pNode->GetSubNode( 1 ) ); + Append("} "); } else if( pNode->GetToken( ).eType == TSTACK ) { Append( "stack{ " ); SmNodeIterator it( pNode ); |