summaryrefslogtreecommitdiff
path: root/library/qpedecoration_qws.cpp
authorzecke <zecke>2002-09-17 17:05:19 (UTC)
committer zecke <zecke>2002-09-17 17:05:19 (UTC)
commite1614b49cf61ee37350828ce5b5178a9da752f39 (patch) (unidiff)
tree836d16a45aaeb47cba40405ff8956a1661315637 /library/qpedecoration_qws.cpp
parent01b2fc89a105bf5b56bc1aa467343d14589dadd2 (diff)
downloadopie-e1614b49cf61ee37350828ce5b5178a9da752f39.zip
opie-e1614b49cf61ee37350828ce5b5178a9da752f39.tar.gz
opie-e1614b49cf61ee37350828ce5b5178a9da752f39.tar.bz2
update
Diffstat (limited to 'library/qpedecoration_qws.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpedecoration_qws.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp
index c2eb751..708dd23 100644
--- a/library/qpedecoration_qws.cpp
+++ b/library/qpedecoration_qws.cpp
@@ -107,8 +107,7 @@ public:
107 107
108static QImage scaleButton( const QImage &img, int height ) 108static QImage scaleButton( const QImage &img, int height )
109{ 109{
110 qWarning("Height %d %d", height, img.height() ); 110 if ( img.height() != 0 && img.height() != height ) {
111 if ( img.height()!=0 && img.height() != height ) {
112 return img.smoothScale( img.width()*height/img.height(), height ); 111 return img.smoothScale( img.width()*height/img.height(), height );
113 } else { 112 } else {
114 return img; 113 return img;