diff options
Diffstat (limited to 'silx/gui/plot/tools/profile/manager.py')
-rw-r--r-- | silx/gui/plot/tools/profile/manager.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/silx/gui/plot/tools/profile/manager.py b/silx/gui/plot/tools/profile/manager.py index 757b741..68db9a6 100644 --- a/silx/gui/plot/tools/profile/manager.py +++ b/silx/gui/plot/tools/profile/manager.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2018-2020 European Synchrotron Radiation Facility +# Copyright (c) 2018-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -775,7 +775,8 @@ class ProfileManager(qt.QObject): window = self._disconnectProfileWindow(profileRoi) if window is not None: geometry = window.geometry() - self._previousWindowGeometry.append(geometry) + if not geometry.isEmpty(): + self._previousWindowGeometry.append(geometry) self.clearProfileWindow(window) if profileRoi in self._rois: self._rois.remove(profileRoi) @@ -949,6 +950,7 @@ class ProfileManager(qt.QObject): """Handle item changes. """ if changeType in (items.ItemChangedType.DATA, + items.ItemChangedType.MASK, items.ItemChangedType.POSITION, items.ItemChangedType.SCALE): self.requestUpdateAllProfile() |