Fix issue in notebook tab preview (this feature hasn't been enabled for a while, but we may want to turn it back on eventually. As such, ensure that we don't run into any problems here)
This commit is contained in:
@@ -1373,7 +1373,7 @@ class PFNotebookPagePreview(wx.Frame):
|
||||
def OnWindowPaint(self, event):
|
||||
rect = self.GetRect()
|
||||
canvas = wx.Bitmap(rect.width, rect.height)
|
||||
mdc = wx.AudoBufferedPaintDC(self)
|
||||
mdc = wx.BufferedPaintDC(self)
|
||||
mdc.SelectObject(canvas)
|
||||
color = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
mdc.SetBackground(wx.Brush(color))
|
||||
|
||||
Reference in New Issue
Block a user