]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/artprov.cpp
A bit of scrolling works under GTK 2.0
[wxWidgets.git] / src / common / artprov.cpp
index 088fc3a2f82f2aeeac3a60974167c0d3605063d9..8da185b4e80eedce0246895db67167c6180c0949 100644 (file)
@@ -194,18 +194,13 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
     wxCHECK_MSG( sm_providers, wxNullIcon, _T("no wxArtProvider exists") );
 
     wxBitmap bmp = GetBitmap(id, client, size);
     wxCHECK_MSG( sm_providers, wxNullIcon, _T("no wxArtProvider exists") );
 
     wxBitmap bmp = GetBitmap(id, client, size);
-    if ( bmp.Ok() )
-    {
-        wxIcon icon;
-        icon.CopyFromBitmap(bmp);
-        return icon;
-    }
-    else
-    {
+    if ( !bmp.Ok() )
         return wxNullIcon;
         return wxNullIcon;
-    }
-}
 
 
+    wxIcon icon;
+    icon.CopyFromBitmap(bmp);
+    return icon;
+}
 
 
 class wxArtProviderModule: public wxModule
 
 
 class wxArtProviderModule: public wxModule