bugfixed: \left....\right) didn't work

This commit is contained in:
jkriege2 2022-08-07 20:39:45 +02:00
parent 3d0183f6e9
commit baeb7f9e38

View File

@ -1628,7 +1628,7 @@ JKQTMathTextNode* JKQTMathText::parseLatexString(bool get, JKQTMathTextBraceType
if (bracetype==MTBTNone) { if (bracetype==MTBTNone) {
currentTokenName=currentTokenName.right(currentTokenName.size()-1); currentTokenName=currentTokenName.right(currentTokenName.size()-1);
JKQTMathTextNode* cn=parseLatexString(currentTokenName.size()<=0, MTBTAny); JKQTMathTextNode* cn=parseLatexString(currentTokenName.size()<=0, MTBTAny);
nl->addChild(new JKQTMathTextBraceNode(this, MTBTNone, bracetype, cn)); nl->addChild(new JKQTMathTextBraceNode(this, MTBTNone, lastRightBraceType, cn));
} else if (isPrintableJKQTMathTextBraceType(bracetype)) { } else if (isPrintableJKQTMathTextBraceType(bracetype)) {
currentTokenName=currentTokenName.right(currentTokenName.size()-1); // we already used the first character from the text token! currentTokenName=currentTokenName.right(currentTokenName.size()-1); // we already used the first character from the text token!
JKQTMathTextNode* c=parseLatexString(currentTokenName.size()<=0, bracetype); JKQTMathTextNode* c=parseLatexString(currentTokenName.size()<=0, bracetype);