X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4dca6329b18c1881429b715fd2ea0ef8d279df2d..2f72b58ae6635bca17e8e19889a84e3b70c7f3a5:/wxPython/wx/lib/printout.py diff --git a/wxPython/wx/lib/printout.py b/wxPython/wx/lib/printout.py index 4af7dbeb0b..2c11a6f2c6 100644 --- a/wxPython/wx/lib/printout.py +++ b/wxPython/wx/lib/printout.py @@ -612,6 +612,8 @@ class PrintTableDraw(wx.ScrolledWindow, PrintBase): except: size = self.row_def_line_size + if size < 1: return + try: colour = self.row_line_colour[self.data_cnt] except: @@ -633,6 +635,8 @@ class PrintTableDraw(wx.ScrolledWindow, PrintBase): except: size = self.column_def_line_size + if size < 1: continue + try: colour = self.column_line_colour[col] except: