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)