Commit 60b61354 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Fixed issue found by cppcheck (reported by Ville Skyttä).

parent 2a4c9a5b
......@@ -56,7 +56,7 @@ ImageViewer::ImageViewer(QWidget* parent, const QImage& img) :
QSizePolicy::Minimum);
m_image = new QLabel(this);
QPushButton* closeButton = new QPushButton(i18n("&Close"), this);
if (vlayout && hlayout && m_image && closeButton) {
if (hlayout && m_image && closeButton) {
m_image->setScaledContents(true);
QSize imageSize(img.size());
QSize desktopSize(QApplication::desktop()->availableGeometry().size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment