[Libreoffice-commits] core.git: starmath/source

dante (via logerrit) logerrit at kemper.freedesktop.org
Wed Dec 2 14:22:30 UTC 2020


 starmath/source/mathmlimport.cxx |   35 ++++++++---------------------------
 1 file changed, 8 insertions(+), 27 deletions(-)

New commits:
commit e8c8af66c4bc63d9761508b4d24f5d1dd4050b79
Author:     dante <dante19031999 at gmail.com>
AuthorDate: Tue Dec 1 21:00:33 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Dec 2 15:21:44 2020 +0100

    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>

diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 085e4ce3e209..5fa4a96ad406 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -1395,34 +1395,15 @@ void SmXMLOperatorContext_Impl::TCharacters(const OUString& rChars)
     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);
-        }
+        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
-        {
-            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);
-        }
+            bToken = starmathdatabase::Identify_PrefixPostfix_SmXMLOperatorContext_Impl(
+                aToken.cMathChar);
     }
     else
         bToken


More information about the Libreoffice-commits mailing list