git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73209
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
const int maxcachedbrush = 58+5; // negative indices are for metabrushes, cache down to -5)
int brushindex = brush+5;
{
const int maxcachedbrush = 58+5; // negative indices are for metabrushes, cache down to -5)
int brushindex = brush+5;
- if ( brushindex < 0 || brush > brushindex )
+ if ( brushindex < 0 || brushindex > maxcachedbrush )
{
CGColorRef color ;
HIThemeBrushCreateCGColor( brush, &color );
{
CGColorRef color ;
HIThemeBrushCreateCGColor( brush, &color );