From b418173eae3395127b38953640d72daca4d1c63b Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 31 Jul 2007 10:38:12 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/Qtx.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Qtx/Qtx.cxx b/src/Qtx/Qtx.cxx index 89d87060d..be51ce08a 100755 --- a/src/Qtx/Qtx.cxx +++ b/src/Qtx/Qtx.cxx @@ -700,7 +700,7 @@ QPixmap Qtx::scaleIcon( const QPixmap& icon, const unsigned w, const unsigned h { QPixmap p; int aw = w, ah = h <= 0 ? w : h; - if ( p.isNull() || aw <= 0 || ah <= 0 || aw == icon.width() && ah == icon.height() ) + if ( icon.isNull() || aw <= 0 || ah <= 0 || aw == icon.width() && ah == icon.height() ) p = icon; else p = icon.fromImage( icon.toImage().scaled( aw, ah, Qt::KeepAspectRatio, Qt::SmoothTransformation ) ); -- 2.39.2