]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/_drawn.py
avoid assert in wxMac port, only change the font point size when we
[wxWidgets.git] / wxPython / wx / lib / ogl / _drawn.py
index 222cb08c76b97fe4e0aeca9d8776e27c0550ebd7..7f2c1d9831dac3aad2d48c9227a3e557ae34e7ef 100644 (file)
@@ -90,7 +90,7 @@ class OpSetGDI(DrawOp):
             if self._gdiIndex in self._image._outlineColours:
                 # Need to construct a brush to match the outline pen's colour
                 if self._image._outlinePen:
-                    br = wx.TheBrushList.FindOrCreateBrush(self._image._outlinePen, wx.SOLID)
+                    br = wx.Brush(self._image._outlinePen, wx.SOLID)
                     if br:
                         dc.SetBrush(br)
             elif self._gdiIndex in self._image._fillColours: