diff options
Diffstat (limited to 'silx/gui/plot/items/shape.py')
-rw-r--r-- | silx/gui/plot/items/shape.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/silx/gui/plot/items/shape.py b/silx/gui/plot/items/shape.py index e6dc529..8176be1 100644 --- a/silx/gui/plot/items/shape.py +++ b/silx/gui/plot/items/shape.py @@ -197,6 +197,8 @@ class BoundingRect(Item, YAxisMixIn): self._updated(ItemChangedType.DATA) def _getBounds(self): + if self.__bounds is None: + return None plot = self.getPlot() if plot is not None: xPositive = plot.getXAxis()._isLogarithmic() |