diff options
| author | Mattias Andrée <m@maandree.se> | 2026-10-15 23:09:54 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-10-15 23:09:54 +0200 |
| commit | 3318f2035381b140436f70844a23da193f5333e5 (patch) | |
| tree | 3b1debcadef70b4f7258bc2a6fbd6ed08d319dd5 | |
| parent | Use logical scrolling + m misc (diff) | |
| download | gcmap-3318f2035381b140436f70844a23da193f5333e5.tar.gz gcmap-3318f2035381b140436f70844a23da193f5333e5.tar.bz2 gcmap-3318f2035381b140436f70844a23da193f5333e5.tar.xz | |
Fix No Block
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rw-r--r-- | gcmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |
