imughal / tkintertable

Automatically exported from code.google.com/p/tkintertable
Other
0 stars 0 forks source link

bug in handle_double_click() #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a TableCanvas with default settings
2. Double click in area beyond the rows or columns
3. IndexError is throwed

What version of the product are you using? On what operating system?
Latest version on Linux

Suggestion: Please modify code in handle_double_click as follows:

        row = self.get_row_clicked(event)
        col = self.get_col_clicked(event)
        if row not in range(0, self.rows) or col not in range(0, self.cols):
            return

Original issue reported on code.google.com by deve...@gmail.com on 29 Aug 2013 at 8:27