Kaydet (Commit) 03f950d6 authored tarafından Luboš Luňák's avatar Luboš Luňák

import docx m:limUpp/m:limLow properly

üst c56e4ab6
...@@ -376,8 +376,8 @@ OUString SmOoxmlImport::handleFunc() ...@@ -376,8 +376,8 @@ OUString SmOoxmlImport::handleFunc()
stream.ensureOpeningTag( M_TOKEN( func )); stream.ensureOpeningTag( M_TOKEN( func ));
OUString fname = readOMathArgInElement( M_TOKEN( fName )); OUString fname = readOMathArgInElement( M_TOKEN( fName ));
// fix the various functions // fix the various functions
if( fname.match( STR( "lim {" ), 0 )) // startsWith() if( fname.match( STR( "lim csub {" ), 0 )) // startsWith()
fname = STR( "lim from {" ) + fname.copy( 5 ); fname = STR( "lim from {" ) + fname.copy( 10 );
OUString ret = fname + STR( " {" ) + readOMathArgInElement( M_TOKEN( e )) + STR( "}" ); OUString ret = fname + STR( " {" ) + readOMathArgInElement( M_TOKEN( e )) + STR( "}" );
stream.ensureClosingTag( M_TOKEN( func )); stream.ensureClosingTag( M_TOKEN( func ));
return ret; return ret;
...@@ -390,7 +390,7 @@ OUString SmOoxmlImport::handleLimLowUpp( LimLowUpp_t limlowupp ) ...@@ -390,7 +390,7 @@ OUString SmOoxmlImport::handleLimLowUpp( LimLowUpp_t limlowupp )
OUString e = readOMathArgInElement( M_TOKEN( e )); OUString e = readOMathArgInElement( M_TOKEN( e ));
OUString lim = readOMathArgInElement( M_TOKEN( lim )); OUString lim = readOMathArgInElement( M_TOKEN( lim ));
stream.ensureClosingTag( token ); stream.ensureClosingTag( token );
return e + STR( " {" ) + lim + STR( "}" ); return e + ( limlowupp == LimLow ? STR( " csub {" ) : STR( " csup {" )) + lim + STR( "}" );
} }
OUString SmOoxmlImport::handleGroupChr() OUString SmOoxmlImport::handleGroupChr()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment