starmath/source/mathmlimport.cxx |   18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

New commits:
commit d18161a90d36b167e9ddd5440be332198b06841d
Author:     dante <dante19031...@gmail.com>
AuthorDate: Tue Dec 1 21:00:33 2020 +0100
Commit:     Adolfo Jayme Barrientos <fit...@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 <caol...@redhat.com>
    (cherry picked from commit e8c8af66c4bc63d9761508b4d24f5d1dd4050b79)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118601
    Reviewed-by: Adolfo Jayme Barrientos <fit...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to