X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3cee65ed41394fdcb13cd485fbe0acafb8a490b..aea9f6d5d3eb8513065583fa8e26d7687c39cc4b:/wxPython/wx/lib/editor/editor.py diff --git a/wxPython/wx/lib/editor/editor.py b/wxPython/wx/lib/editor/editor.py index d94a8cd8c5..2a3f3af6ba 100644 --- a/wxPython/wx/lib/editor/editor.py +++ b/wxPython/wx/lib/editor/editor.py @@ -241,9 +241,8 @@ class Editor(wx.ScrolledWindow): if not odc: odc = wx.ClientDC(self) - bmp = wx.EmptyBitmap(max(1,self.bw), max(1,self.bh)) - dc = wx.BufferedDC(odc, bmp) - if dc.Ok(): + dc = wx.BufferedDC(odc) + if dc.IsOk(): dc.SetFont(self.font) dc.SetBackgroundMode(wx.SOLID) dc.SetTextBackground(self.bgColor)