From 21c4022fcac4d9dd9bf171a0e4f51ec6900ae6a4 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 9 May 2022 23:46:33 +0200 Subject: [PATCH] PlaylistView: Fix invalidating cached pixmap on scroll Fixes #952 --- src/playlist/playlistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index a5e003f0..cd2e13c0 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -894,7 +894,7 @@ void PlaylistView::mousePressEvent(QMouseEvent *event) { void PlaylistView::scrollContentsBy(int dx, int dy) { - if (dx > 0) { + if (dx != 0) { InvalidateCachedCurrentPixmap(); } cached_tree_ = QPixmap();