graphics/GraphicCommons.py
changeset 1631 940e20a8865b
parent 1571 486f94a8032c
child 1730 64d8f52bc8c8
--- a/graphics/GraphicCommons.py	Fri Jan 13 16:47:46 2017 +0300
+++ b/graphics/GraphicCommons.py	Fri Jan 13 19:51:36 2017 +0300
@@ -2895,10 +2895,15 @@
                    wx.Point(self.Pos.x + self.Size[0], self.Pos.y + self.Size[1]),
                    wx.Point(self.Pos.x, self.Pos.y + self.Size[1])]
         dc.DrawPolygon(polygon)
+
+        # dc.SetBrush call is workaround for the issue with wx.PrinterDC
+        # with wxPython 3.0 on GNU/Linux (don't remove it)
+        dc.SetBrush(wx.WHITE_BRUSH)
         lines = [wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y),
                  wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y + 10),
                  wx.Point(self.Pos.x + self.Size[0], self.Pos.y + 10)]
         dc.DrawLines(lines)
+
         # Draws the comment content
         y = self.Pos.y + 10
         for idx, line in enumerate(self.Content.splitlines()):