From 27d592ba2a4c982c2f932851188c5aa3048ac170 Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Sat, 31 Aug 2024 12:32:04 +0200 Subject: [PATCH] Properly set stream reset position in old scene It used the wrong scene bounds, leading to the notice to end up in the middle of the canvas. --- src/desktop/scene/canvasscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/scene/canvasscene.cpp b/src/desktop/scene/canvasscene.cpp index 5568a8d497..772adb8f6e 100644 --- a/src/desktop/scene/canvasscene.cpp +++ b/src/desktop/scene/canvasscene.cpp @@ -782,8 +782,8 @@ void CanvasScene::setStreamResetNoticePosition() qreal catchupOffset = m_catchup ? m_catchup->boundingRect().height() + NOTICE_OFFSET : 0.0; QRectF streamResetNoticeBounds = m_streamResetNotice->boundingRect(); - m_streamResetNotice->updatePosition( - sceneRect().bottomRight() - + m_streamResetNotice->setPos( + m_sceneBounds.bottomRight() - QPointF( streamResetNoticeBounds.width() + NOTICE_OFFSET, streamResetNoticeBounds.height() + NOTICE_OFFSET + catchupOffset));