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);
|
sizeNeeded);
|
||||||
if ( bitmap.IsOk() )
|
if ( bitmap.IsOk() )
|
||||||
{
|
{
|
||||||
if ( sizeNeeded.IsFullySpecified() &&
|
if ( bitmap.GetSize() != sizeNeeded )
|
||||||
bitmap.GetSize() != sizeNeeded )
|
|
||||||
{
|
{
|
||||||
wxArtProvider::RescaleBitmap(bitmap, sizeNeeded);
|
wxArtProvider::RescaleBitmap(bitmap, sizeNeeded);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user