From: Robin Dunn Date: Tue, 21 Nov 2006 03:44:35 +0000 (+0000) Subject: no need to use a throw-away bitmap, just use th eone built-in to the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2efbde68e90616248e8460b170b3920601ae86bf?ds=inline no need to use a throw-away bitmap, just use th eone built-in to the buffered DC instead git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)