X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..7f3450784cc9c696f269ff1bfde3623c180d4b58:/wxPython/wx/lib/printout.py diff --git a/wxPython/wx/lib/printout.py b/wxPython/wx/lib/printout.py index 0ced233037..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: @@ -911,7 +915,7 @@ class PrintTable: printout2 = SetPrintout(self) self.preview = wx.PrintPreview(printout, printout2, data) if not self.preview.Ok(): - wxMessageBox("There was a problem printing!", "Printing", wx.OK) + wx.MessageBox("There was a problem printing!", "Printing", wx.OK) return self.preview.SetZoom(60) # initial zoom value