From baeb7f9e38f13dd26879815fa26bb96b23995602 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Sun, 7 Aug 2022 20:39:45 +0200 Subject: [PATCH] bugfixed: \left....\right) didn't work --- lib/jkqtmathtext/jkqtmathtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jkqtmathtext/jkqtmathtext.cpp b/lib/jkqtmathtext/jkqtmathtext.cpp index 941e19b79f..6f5489a766 100644 --- a/lib/jkqtmathtext/jkqtmathtext.cpp +++ b/lib/jkqtmathtext/jkqtmathtext.cpp @@ -1628,7 +1628,7 @@ JKQTMathTextNode* JKQTMathText::parseLatexString(bool get, JKQTMathTextBraceType if (bracetype==MTBTNone) { currentTokenName=currentTokenName.right(currentTokenName.size()-1); 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)) { currentTokenName=currentTokenName.right(currentTokenName.size()-1); // we already used the first character from the text token! JKQTMathTextNode* c=parseLatexString(currentTokenName.size()<=0, bracetype);