[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - starmath/source
dante (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 9 08:49:57 UTC 2021
starmath/source/mathmlimport.cxx | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
New commits:
commit d18161a90d36b167e9ddd5440be332198b06841d
Author: dante <dante19031999 at gmail.com>
AuthorDate: Tue Dec 1 21:00:33 2020 +0100
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Fri Jul 9 10:49:23 2021 +0200
Doubled code correction
Change-Id: I391cb0f51788034e358889bb4aaf38c3824cac2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107010
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
(cherry picked from commit e8c8af66c4bc63d9761508b4d24f5d1dd4050b79)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118601
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 543a8d02fcb2..2df8e642d925 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -1415,20 +1415,10 @@ void SmXMLOperatorContext_Impl::TCharacters(const OUString &rChars)
aToken.cMathChar = rChars[0];
SmToken bToken;
if( bIsFenced ){
- if( bIsStretchy )
- {
- if( isPrefix ) bToken = starmathdatabase::Identify_Prefix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- else if( isInfix ) bToken = SmToken( TMLINE, MS_VERTLINE, "mline", TG::NONE, 0 );
- else if( isPostfix ) bToken = starmathdatabase::Identify_Postfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- else bToken = starmathdatabase::Identify_PrefixPostfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- }
- else
- {
- if( isPrefix ) bToken = starmathdatabase::Identify_Prefix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- else if( isInfix ) bToken = SmToken( TMLINE, MS_VERTLINE, "mline", TG::NONE, 0 );
- else if( isPostfix ) bToken = starmathdatabase::Identify_Postfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- else bToken = starmathdatabase::Identify_PrefixPostfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
- }
+ if( isPrefix ) bToken = starmathdatabase::Identify_Prefix_SmXMLOperatorContext_Impl( aToken.cMathChar );
+ else if( isInfix ) bToken = SmToken( TMLINE, MS_VERTLINE, "mline", TG::NONE, 0 );
+ else if( isPostfix ) bToken = starmathdatabase::Identify_Postfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
+ else bToken = starmathdatabase::Identify_PrefixPostfix_SmXMLOperatorContext_Impl( aToken.cMathChar );
}
else bToken = starmathdatabase::Identify_SmXMLOperatorContext_Impl( aToken.cMathChar, bIsStretchy );
if( bToken.eType != TERROR ) aToken = bToken;
More information about the Libreoffice-commits
mailing list