[gnome-music/wip/mschraal/flac-cue: 1/5] fix some searchbug with new albumcover
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/flac-cue: 1/5] fix some searchbug with new albumcover
- Date: Wed, 6 Nov 2019 09:57:15 +0000 (UTC)
commit 6416f0cd80576ee4a1ddfe502dc923dbe086f0d1
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Nov 5 16:11:11 2019 +0100
fix some searchbug with new albumcover
gnomemusic/views/albumsview.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index 7836f86d..bad35592 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -122,6 +122,9 @@ class AlbumsView(Gtk.Stack):
top_left_cover = self._flowbox.get_child_at_index(
nr_cols * (adjustment // (cover_size.height + v_space)))
+ if cover_size.width == 0 or cover_size.height == 0:
+ return GLib.SOURCE_CONTINUE
+
covers_col = math.ceil(viewport_size.width / cover_size.width)
covers_row = math.ceil(viewport_size.height / cover_size.height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]