From 5f1bc80331e3826a9c14f378e2baa71f4ce61c30 Mon Sep 17 00:00:00 2001 From: Francesco Date: Wed, 20 Nov 2024 19:47:11 +0100 Subject: [PATCH] fix: ignore missing IDs when highlighting ID --- cellacdc/gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cellacdc/gui.py b/cellacdc/gui.py index 38603dee..c98f4c4c 100755 --- a/cellacdc/gui.py +++ b/cellacdc/gui.py @@ -23244,7 +23244,11 @@ def highlightHoverIDsKeptObj(self, x, y, hoverID=None): return posData = self.data[self.pos_i] - objIdx = posData.IDs_idxs[hoverID] + try: + objIdx = posData.IDs_idxs[hoverID] + except KeyError as err: + return + obj = posData.rp[objIdx] self.goToZsliceSearchedID(obj)