From fa2c5ec9dae7e4f36bf605b01d816211a19f72e5 Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer Date: Sat, 13 Mar 2010 14:51:20 +0100 Subject: [PATCH] OTHER: textscroller ignored trailing space after seperator --- src/mainwindow/textscroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ()); }