]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/printout.py
more informative assert message
[wxWidgets.git] / wxPython / wx / lib / printout.py
index 4af7dbeb0bcef9b49e963e2758c1a20546eb60bc..2c11a6f2c6ba927f27f791261d987477bbbff6fa 100644 (file)
@@ -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: