summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-30 14:54:01 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-30 16:11:45 +0100
commit03f950d64f99be1a16a0da98cd0cf1d41dfb8649 (patch)
treeebfe6603558678746cb8f79801167cf40af741cd /starmath
parentc56e4ab6675a83da09bfbe69bf63f6a4cedcb566 (diff)
import docx m:limUpp/m:limLow properly
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ooxmlimport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index dcdeab202fb0..31a7a4057af8 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -376,8 +376,8 @@ OUString SmOoxmlImport::handleFunc()
stream.ensureOpeningTag( M_TOKEN( func ));
OUString fname = readOMathArgInElement( M_TOKEN( fName ));
// fix the various functions
- if( fname.match( STR( "lim {" ), 0 )) // startsWith()
- fname = STR( "lim from {" ) + fname.copy( 5 );
+ if( fname.match( STR( "lim csub {" ), 0 )) // startsWith()
+ fname = STR( "lim from {" ) + fname.copy( 10 );
OUString ret = fname + STR( " {" ) + readOMathArgInElement( M_TOKEN( e )) + STR( "}" );
stream.ensureClosingTag( M_TOKEN( func ));
return ret;
@@ -390,7 +390,7 @@ OUString SmOoxmlImport::handleLimLowUpp( LimLowUpp_t limlowupp )
OUString e = readOMathArgInElement( M_TOKEN( e ));
OUString lim = readOMathArgInElement( M_TOKEN( lim ));
stream.ensureClosingTag( token );
- return e + STR( " {" ) + lim + STR( "}" );
+ return e + ( limlowupp == LimLow ? STR( " csub {" ) : STR( " csup {" )) + lim + STR( "}" );
}
OUString SmOoxmlImport::handleGroupChr()