diff --git a/jkqtmathtext.cpp b/jkqtmathtext.cpp index 103a9ae569..84cff88e42 100644 --- a/jkqtmathtext.cpp +++ b/jkqtmathtext.cpp @@ -4078,7 +4078,7 @@ void JKQTMathTextLabel::internalPaint() size=m_mathText->getSize(p); p.end(); } - buffer=QPixmap(size.width()*1.2, size.height()*1.1); + buffer=QPixmap(qMax(32.0,size.width()*1.2), qMax(10.0,size.height()*1.1)); buffer.fill(Qt::transparent); { //qDebug()<<"internalPaint(): "<