Skip to content

Commit

Permalink
try fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jun 16, 2023
1 parent 5f7383a commit 80690f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/silx/gui/data/DataViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def __updateDataInView(self):
def __setDataInView(self):
self.__currentView.setData(self.__displayedData)
self.__currentView.setDataSelection(self.__displayedSelection)

if self.__displayedSelection is None:
return

# Emit signal only when selection has changed
if (self.__previousSelection.slice != self.__displayedSelection.slice or
self.__previousSelection.permutation != self.__displayedSelection.permutation
Expand Down

0 comments on commit 80690f7

Please sign in to comment.