From 3318f2035381b140436f70844a23da193f5333e5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 15 Oct 2026 23:09:54 +0200 Subject: Fix No Block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gcmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcmap.c b/gcmap.c index 665229c..816d83e 100644 --- a/gcmap.c +++ b/gcmap.c @@ -242,8 +242,12 @@ grouplist_selection_changed(GtkTreeSelection *selection, void *user_data) break; case BY_BLOCK: - if (index-- > 0 && (size_t)index < libcmap_block_list_size) + if (index-- > 0 && (size_t)index < libcmap_block_list_size) { ranges = &libcmap_block_list[index].range; + } else if ((size_t)index == libcmap_block_list_size) { + ranges = libcmap_no_block.ranges; + nranges = libcmap_no_block.nranges; + } break; default: -- cgit v1.3.1