From e6c2d88bd0f8d9e8a9d534d2f28a62ae39e6bac9 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 19 Dec 2012 15:31:57 +0000 Subject: [PATCH] fixing typo git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/utils_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index da98e5371a..438f7ddbf0 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -248,7 +248,7 @@ CGColorRef wxMacCreateCGColorFromHITheme( ThemeBrush brush ) { 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 ); -- 2.45.2