]> git.saurik.com Git - wxWidgets.git/commitdiff
guard against invalid color ref
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 19 Jan 2012 15:01:47 +0000 (15:01 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 19 Jan 2012 15:01:47 +0000 (15:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/graphics.cpp

index 3a5306d1bb23de6cb550df9d5cba1c8a06705703..549b20130072d7a16478657918236bc725bd3247 100644 (file)
@@ -165,6 +165,7 @@ CGColorRef wxMacCreateCGColor( const wxColour& col )
     }
 
 #endif
+    wxASSERT(retval != NULL);
     return retval;
 }