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:
Vadim Zeitlin
2018-11-18 22:47:29 +01:00
parent 49d8491518
commit 262124ca1b

View File

@@ -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);
}