We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cca64 commit 8ccfeb8Copy full SHA for 8ccfeb8
src/robotide/editor/gridcolorizer.py
@@ -37,13 +37,14 @@ def colorize(self, selection_content):
37
self._coloring_task(selection_content)
38
39
def _coloring_task(self, selection_content, row=0, col=0):
40
- if row >= self._grid.NumberRows:
41
- self._grid.ForceRefresh()
42
- elif col < self._grid.NumberCols:
43
- self._colorize_cell(row, col, selection_content)
44
- self._coloring_task(selection_content, row, col+1)
45
- else:
46
- self._coloring_task(selection_content, row+1, 0)
+ if self._grid: # For example move from RIDE Log tab to Grid
+ if row >= self._grid.NumberRows:
+ self._grid.ForceRefresh()
+ elif col < self._grid.NumberCols:
+ self._colorize_cell(row, col, selection_content)
+ self._coloring_task(selection_content, row, col+1)
+ else:
47
+ self._coloring_task(selection_content, row+1, 0)
48
49
def _colorize_cell(self, row, col, selection_content):
50
cell_info = self._controller.get_cell_info(row, col)
0 commit comments