beremiz

Fix black background in preview window

2018-09-25, Andrey Skvortsov
4ec6d6cd23ca
Parents 210cddfa16cf
Children 33071a451021
Fix black background in preview window

Problem found and fixed on GNU/Linux
wxWidgets 3.0 built with GTK3+ support and running on Xorg.
  • +2 -0
    IDEFrame.py
  • --- a/IDEFrame.py Tue Sep 25 18:29:10 2018 +0300
    +++ b/IDEFrame.py Tue Sep 25 18:31:17 2018 +0300
    @@ -2628,6 +2628,8 @@
    def OnPrintPage(self, page):
    dc = self.GetDC()
    + dc.SetBackground(wx.WHITE_BRUSH)
    + dc.Clear()
    dc.SetUserScale(1.0, 1.0)
    dc.SetDeviceOrigin(0, 0)
    dc.printing = not self.Preview