diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index 27e07ef535..fff39e7370 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -309,7 +309,7 @@ wxArtProvider::RescaleOrResizeIfNeeded(wxBitmap& bmp, const wxSize& sizeNeeded) return; #if wxUSE_IMAGE - if ((bmp_h <= sizeNeeded.x) && (bmp_w <= sizeNeeded.y)) + if ((bmp_w <= sizeNeeded.x) && (bmp_h <= sizeNeeded.y)) { // the caller wants default size, which is larger than // the image we have; to avoid degrading it visually by