# HG changeset patch # User Andrey Skvortsov # Date 1537889477 -10800 # Node ID 4ec6d6cd23ca0ce67d1c82642f538c0d3369f7d9 # Parent 210cddfa16cf045622c3edeec6e98ea9e154c4cd Fix black background in preview window Problem found and fixed on GNU/Linux wxWidgets 3.0 built with GTK3+ support and running on Xorg. diff -r 210cddfa16cf -r 4ec6d6cd23ca 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