Fix black background in preview window
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 25 Sep 2018 18:31:17 +0300
changeset 2342 4ec6d6cd23ca
parent 2341 210cddfa16cf
child 2343 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.
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