]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing typo
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Dec 2012 15:31:57 +0000 (15:31 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Dec 2012 15:31:57 +0000 (15:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/utils_osx.cpp

index da98e5371a0edab41fabc195e239947025e86877..438f7ddbf0bdb094b005ca4dd96dca45d34e6b8b 100644 (file)
@@ -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 );