diff --git a/lib/jkqtmathtext/nodes/jkqtmathtextlistnode.cpp b/lib/jkqtmathtext/nodes/jkqtmathtextlistnode.cpp index 38f030e734..c6817ec81f 100644 --- a/lib/jkqtmathtext/nodes/jkqtmathtextlistnode.cpp +++ b/lib/jkqtmathtext/nodes/jkqtmathtextlistnode.cpp @@ -96,7 +96,7 @@ void JKQTMathTextHorizontalListNode::getSizeInternal(QPainter& painter, JKQTMath if (nodeI_SuperScript) { if (i+1(nodes[i+1])) { // is this subscript? - double w1, w2, oh, bh, sp; + double w1=0, w2=0, oh=0, bh=0, sp=0; nodes[i]->getSize(painter, currentEv, w1, bh, oh, sp, prevNodeSizePtrForSuperscript); if (bh>baselineHeight) { @@ -131,7 +131,7 @@ void JKQTMathTextHorizontalListNode::getSizeInternal(QPainter& painter, JKQTMath } else if (nodeI_SubScript) { if (i+1(nodes[i+1])) { // is this subscript? - double w1, w2, oh, bh, sp; + double w1=0, w2=0, oh=0, bh=0, sp=0; nodes[i]->getSize(painter, currentEv, w1, bh, oh, sp, prevNodeSizePtrForSubscript); if (bh>baselineHeight) { overallHeight=overallHeight+bh-baselineHeight; @@ -162,7 +162,7 @@ void JKQTMathTextHorizontalListNode::getSizeInternal(QPainter& painter, JKQTMath //qDebug()<<"### subsupop: sub+super1 overallHeight="<