]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/imaglist.cpp
Blind fix
[wxWidgets.git] / src / msw / imaglist.cpp
index c31e18afbe378c1f03f12f0190a8de58e536bda4..e0a5d3a76eed9a499b1694c5e69e87c1766682d2 100644 (file)
@@ -264,10 +264,10 @@ bool wxImageList::Draw(int index,
     COLORREF clr = CLR_NONE;    // transparent by default
     if ( solidBackground )
     {
     COLORREF clr = CLR_NONE;    // transparent by default
     if ( solidBackground )
     {
-        wxBrush *brush = & dc.GetBackground();
-        if ( brush && brush->Ok() )
+        const wxBrush& brush = dc.GetBackground();
+        if ( brush.Ok() )
         {
         {
-            clr = wxColourToRGB(brush->GetColour());
+            clr = wxColourToRGB(brush.GetColour());
         }
     }
 
         }
     }