From 9877b3e2059a8fa8f7b517b86793c1def7a015a1 Mon Sep 17 00:00:00 2001 From: Vesna Tanko Date: Mon, 8 Apr 2019 08:03:41 +0200 Subject: [PATCH] LinearProjectionVizRank: Add a necessary check --- Orange/widgets/visualize/owlinearprojection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Orange/widgets/visualize/owlinearprojection.py b/Orange/widgets/visualize/owlinearprojection.py index de66b632dee..8d95fe417f5 100644 --- a/Orange/widgets/visualize/owlinearprojection.py +++ b/Orange/widgets/visualize/owlinearprojection.py @@ -164,6 +164,8 @@ def row_for_state(self, score, state): return [item] def on_selection_changed(self, selected, deselected): + if not selected.indexes(): + return attrs = selected.indexes()[0].data(self._AttrRole) self.selectionChanged.emit([attrs])