We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9225e8d commit 1cbeae3Copy full SHA for 1cbeae3
Orange/widgets/utils/itemmodels.py
@@ -127,7 +127,10 @@ def mapToSourceRows(self, rows):
127
Source rows matching input rows. If they are the same,
128
simply input `rows` is returned.
129
"""
130
- if self.__sortInd is not None:
+ if self.__sortInd is not None \
131
+ # self.__sortInd[rows] fails if `rows` is an empty list or array
132
+ and (isinstance(rows, (int, type(Ellipsis)))
133
+ or len(rows)):
134
new_rows = self.__sortInd[rows]
135
if rows is Ellipsis:
136
new_rows.setflags(write=False)
0 commit comments