From dbfcf0525b809316f4628f2d8a0504401d5abfa8 Mon Sep 17 00:00:00 2001 From: kriegerj Date: Tue, 1 Sep 2015 12:03:14 +0200 Subject: [PATCH] wip --- jkqtmathtext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(): "<