Skip to content

Commit

Permalink
Fix broken Grid Editor in Linux with wxPython 2.2a
Browse files Browse the repository at this point in the history
  • Loading branch information
HelioGuilherme66 committed Jun 16, 2024
1 parent 65b7e18 commit dc4fb8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/robotide/editor/gridbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,17 @@ def _get_bounding_coordinates(event):

def rows(self):
"""Returns a list containing indices of rows currently selected."""
return range(self.topleft.row, self.bottomright.row + 1)
try:
return range(self.topleft.row, self.bottomright.row + 1)
except Exception:
return [0, 1]

def cols(self):
"""Returns a list containing indices of columns currently selected."""
return range(self.topleft.col, self.bottomright.col + 1)
try:
return range(self.topleft.col, self.bottomright.col + 1)
except Exception:
return [0, 1]

def cells(self):
"""Return selected cells as a list of tuples (row, column)."""
Expand Down

0 comments on commit dc4fb8a

Please sign in to comment.