summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2020-12-01 21:00:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-12-02 15:21:44 +0100
commite8c8af66c4bc63d9761508b4d24f5d1dd4050b79 (patch)
tree2dfea2aafd9610cfc97e07df7cceac8e8a564073 /starmath
parentfdcfed3d896ed100a9a96560b400e49974409e0b (diff)
Doubled code correction
Change-Id: I391cb0f51788034e358889bb4aaf38c3824cac2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107010 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlimport.cxx35
1 files changed, 8 insertions, 27 deletions
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