diff --git a/wafo/fig.py b/wafo/fig.py index cb7d76b..5eb9204 100644 --- a/wafo/fig.py +++ b/wafo/fig.py @@ -884,7 +884,7 @@ class _CycleGenerator(object): i += self.nfigspercycle elif result == wx.ID_BACKWARD: i -= self.nfigspercycle - else: + else: i = -1 return i