Remove unnecessary bitmap size check in wxWindowsArtProvider
This "sizeNeeded" is always fully specified as we explicitly use a fallback size if the input size wasn't, so there is no need for checking this.
This commit is contained in:
@@ -200,8 +200,7 @@ wxBitmap wxWindowsArtProvider::CreateBitmap(const wxArtID& id,
|
||||
sizeNeeded);
|
||||
if ( bitmap.IsOk() )
|
||||
{
|
||||
if ( sizeNeeded.IsFullySpecified() &&
|
||||
bitmap.GetSize() != sizeNeeded )
|
||||
if ( bitmap.GetSize() != sizeNeeded )
|
||||
{
|
||||
wxArtProvider::RescaleBitmap(bitmap, sizeNeeded);
|
||||
}
|
||||
|
Reference in New Issue
Block a user