Skip to content

Commit

Permalink
Fix error when no valid view index is available
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 16, 2018
1 parent ad627e1 commit 3eda51d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# EasyDiff 2.0.4

> Released Mar X, 2018
- **FIX**: Fix view index issue.

# EasyDiff 2.0.3

> Released Feb 5, 2017
Expand Down
2 changes: 1 addition & 1 deletion easy_diff_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_group_view(window, group, index):
"""Get the view at the given index in the given group."""

sheets = window.sheets_in_group(int(group))
sheet = sheets[index] if index < len(sheets) else None
sheet = sheets[index] if -1 < index < len(sheets) else None
view = sheet.view() if sheet is not None else None
return view

Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "2.0.3"
__version__ = "2.0.4"
__pc_name__ = 'EasyDiff'

CSS = '''
Expand Down

0 comments on commit 3eda51d

Please sign in to comment.