summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/kmessagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/kmessagewidget.cpp')
-rw-r--r--desktop-widgets/kmessagewidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/kmessagewidget.cpp b/desktop-widgets/kmessagewidget.cpp
index 2e506af2d..8a7a154d1 100644
--- a/desktop-widgets/kmessagewidget.cpp
+++ b/desktop-widgets/kmessagewidget.cpp
@@ -177,8 +177,8 @@ void KMessageWidgetPrivate::updateSnapShot()
void KMessageWidgetPrivate::slotTimeLineChanged(qreal value)
{
- q->setFixedHeight(qMin(value * 2, qreal(1.0)) * content->height());
- q->update();
+ q->setFixedHeight(lrint(qMin(value * 2, qreal(1.0)) * content->height()));
+ q->update();
}
void KMessageWidgetPrivate::slotTimeLineFinished()