create stock GDI objects on demand; use const with GDI objects appropriately (patch 1445355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2323,7 +2323,7 @@ void wxGenericTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level
|
||||
|
||||
if (IsExposed(exposed_x, exposed_y, 10000, h)) // 10000 = very much
|
||||
{
|
||||
wxPen *pen =
|
||||
const wxPen *pen =
|
||||
#ifndef __WXMAC__
|
||||
// don't draw rect outline if we already have the
|
||||
// background color under Mac
|
||||
|
Reference in New Issue
Block a user