[Libreoffice-commits] .: starmath/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 6 09:01:30 PDT 2012
starmath/source/ooxmlimport.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 982b7cb498c3ea1106c5d2184f84989d99b1d942
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Thu Sep 6 17:59:22 2012 +0200
actually use startsWith(), now that it really exists
Change-Id: I0f1557f480e9d20d4ead359ad0eaa75db9b8f9db
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 12e20a6..50b06e0 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -416,7 +416,7 @@ OUString SmOoxmlImport::handleFunc()
stream.ensureOpeningTag( M_TOKEN( func ));
OUString fname = readOMathArgInElement( M_TOKEN( fName ));
// fix the various functions
- if( fname.match( "lim csub {", 0 )) // startsWith()
+ if( fname.startsWith( "lim csub {" ))
fname = "lim from {" + fname.copy( 10 );
OUString ret = fname + " {" + readOMathArgInElement( M_TOKEN( e )) + "}";
stream.ensureClosingTag( M_TOKEN( func ));
More information about the Libreoffice-commits
mailing list