diff --git a/src/mainwindow/textscroller.cpp b/src/mainwindow/textscroller.cpp index 849cc04..fc54cc7 100644 --- a/src/mainwindow/textscroller.cpp +++ b/src/mainwindow/textscroller.cpp @@ -192,9 +192,9 @@ TextScroller::drawQtFont (QString text) if (rect.width() > width ()) { temp += QString (" *** "); - QRect rect = fM.boundingRect (temp); + int w = fM.width (temp); - m_pixmap = QPixmap (rect.width(), height ()); + m_pixmap = QPixmap (w, height ()); } else { m_pixmap = QPixmap (size ()); }