summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-07-17 23:38:37 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-07-17 23:44:14 +0400
commit80de3c0fe6b191f6d528ae1142737e2561b12ccd (patch)
tree54a3a7a3f5a887531a9e95e43087d28aff9fc976 /starmath
parent44a3a345ac2b9901122a9eac70538ef04417bbd4 (diff)
fdo#38887: SmNodeToTextVisitor: use from and to instead of csub and csup
Change-Id: Ief3ba731fe303b0fdc58ac70c564636e2dc5acac
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/visitors.cxx28
1 files changed, 20 insertions, 8 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index 1269b5902df0..2722e4e045c7 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -2222,15 +2222,21 @@ void SmNodeToTextVisitor::Visit( SmOperNode* pNode )
LineToText( pChild );
Append( "} " );
}
- if( ( pChild = pSubSup->GetSubSup( CSUP ) ) ) {
+ if( ( pChild = pSubSup->GetSubSup( CSUB ) ) ) {
Separate( );
- Append( "csup { " );
+ if (pSubSup->IsUseLimits())
+ Append( "from { " );
+ else
+ Append( "csub { " );
LineToText( pChild );
Append( "} " );
}
- if( ( pChild = pSubSup->GetSubSup( CSUB ) ) ) {
+ if( ( pChild = pSubSup->GetSubSup( CSUP ) ) ) {
Separate( );
- Append( "csub { " );
+ if (pSubSup->IsUseLimits())
+ Append( "to { " );
+ else
+ Append( "csup { " );
LineToText( pChild );
Append( "} " );
}
@@ -2406,14 +2412,20 @@ void SmNodeToTextVisitor::Visit( SmSubSupNode* pNode )
Append( "_ " );
LineToText( pChild );
}
- if( ( pChild = pNode->GetSubSup( CSUP ) ) ) {
+ if( ( pChild = pNode->GetSubSup( CSUB ) ) ) {
Separate( );
- Append( "csup " );
+ if (pNode->IsUseLimits())
+ Append( "from " );
+ else
+ Append( "csub " );
LineToText( pChild );
}
- if( ( pChild = pNode->GetSubSup( CSUB ) ) ) {
+ if( ( pChild = pNode->GetSubSup( CSUP ) ) ) {
Separate( );
- Append( "csub " );
+ if (pNode->IsUseLimits())
+ Append( "to " );
+ else
+ Append( "csup " );
LineToText( pChild );
}
}