mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
bugfix: didn't compile with Qt < 6.0
This commit is contained in:
parent
f9c060af68
commit
d8a3539844
@ -1225,7 +1225,8 @@ JKQTMathTextNode* JKQTMathText::parseLatexString(bool get, JKQTMathTextBraceType
|
|||||||
if (currentToken==MTTtext) {
|
if (currentToken==MTTtext) {
|
||||||
if (currentTokenName.size()>0) {
|
if (currentTokenName.size()>0) {
|
||||||
bool tokenWasNoBrace=false;
|
bool tokenWasNoBrace=false;
|
||||||
if (TokenNameMatchesJKQTMathTextBraceType(currentTokenName[0], quitOnClosingBrace, true, &tokenWasNoBrace)) {
|
const QString firstTokenChar(currentTokenName[0]);
|
||||||
|
if (TokenNameMatchesJKQTMathTextBraceType(firstTokenChar, quitOnClosingBrace, true, &tokenWasNoBrace)) {
|
||||||
//std::cout<<"found \\right '"<<currentTokenName.toStdString()<<"'\n";
|
//std::cout<<"found \\right '"<<currentTokenName.toStdString()<<"'\n";
|
||||||
showLeftBrace=(quitOnClosingBrace==MTBTAny || quitOnClosingBrace!=MTBTNone);
|
showLeftBrace=(quitOnClosingBrace==MTBTAny || quitOnClosingBrace!=MTBTNone);
|
||||||
showRightBrace=!tokenWasNoBrace;
|
showRightBrace=!tokenWasNoBrace;
|
||||||
@ -1252,7 +1253,8 @@ JKQTMathTextNode* JKQTMathText::parseLatexString(bool get, JKQTMathTextBraceType
|
|||||||
} else if (currentInstructionName=="left") {
|
} else if (currentInstructionName=="left") {
|
||||||
if (currentToken==MTTtext) {
|
if (currentToken==MTTtext) {
|
||||||
if (currentTokenName.size()>0) {
|
if (currentTokenName.size()>0) {
|
||||||
const JKQTMathTextBraceType bracetype=TokenName2JKQTMathTextBraceType(currentTokenName[0]);
|
const QString firstTokenChar(currentTokenName[0]);
|
||||||
|
const JKQTMathTextBraceType bracetype=TokenName2JKQTMathTextBraceType(firstTokenChar);
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user