Diffstat (limited to 'library/qpedecoration_qws.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | library/qpedecoration_qws.cpp | 3 |
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 | ||
108 | static QImage scaleButton( const QImage &img, int height ) | 108 | static 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; |