-rw-r--r-- | library/fileselector.h | 2 | ||||
-rw-r--r-- | library/qpedecoration_qws.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/library/fileselector.h b/library/fileselector.h index ef57626..f1c9eb1 100644 --- a/library/fileselector.h +++ b/library/fileselector.h | |||
@@ -103,7 +103,7 @@ private: | |||
103 | 103 | ||
104 | private: | 104 | private: |
105 | // RESOLVE please -zecke@handhelds.org | 105 | // RESOLVE please -zecke@handhelds.org |
106 | const DocLnk *selected(); // use selectedDocument() that's no luckily no compiler is putting the access into the symbol name | 106 | const DocLnk *selected(); // use selectedDocument() luckily no compiler is putting the access into the symbol name |
107 | FileSelectorView *view; | 107 | FileSelectorView *view; |
108 | QString filter; | 108 | QString filter; |
109 | QToolButton *buttonNew, *buttonClose; | 109 | QToolButton *buttonNew, *buttonClose; |
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; |