[PATCH] Fix matrices with blank elements.

Luke Dixon 6b8b4567 at gmail.com
Tue Nov 23 08:17:23 PST 2010


---
 starmath/source/visitors.cxx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index ab2ac87..3b9bdef 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -2466,9 +2466,11 @@ void SmNodeToTextVisitor::Visit( SmMatrixNode* pNode )
     for ( USHORT i = 0; i < pNode->GetNumRows( ); i++ ) {
         for ( USHORT j = 0; j < pNode->GetNumCols( ); j++ ) {
             SmNode* pSubNode = pNode->GetSubNode( i * pNode->GetNumCols( ) + j );
+            Append( "{" );
             Separate( );
             pSubNode->Accept( this );
             Separate( );
+            Append( "}" );
             if( j != pNode->GetNumCols( ) - 1 )
                 Append( "#" );
         }
-- 
1.7.3.2


--=-AjiY2quJuhtOq883uy1q
Content-Disposition: attachment; filename="0001-Add-some-tests-for-SmNodeToTextVisitor.patch"
Content-Type: text/x-patch; name="0001-Add-some-tests-for-SmNodeToTextVisitor.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



More information about the LibreOffice mailing list