starmath/source/mathmlimport.cxx | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-)
New commits: commit e8c8af66c4bc63d9761508b4d24f5d1dd4050b79 Author: dante <dante19031...@gmail.com> AuthorDate: Tue Dec 1 21:00:33 2020 +0100 Commit: Caolán McNamara <caol...@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 <caol...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits