on xenial help sign in
Catch the case where m_height or image height are <= 0
f96138dAlbert Astals
plugins/Dash/croppedimagesizer.cpp+3
@@ -106,6 +106,9 @@ void CroppedImageSizer::requestFinished()
106 } else {
106 } else {
107 m_sourceSize = QSize(0, m_height);
107 m_sourceSize = QSize(0, m_height);
108 }
108 }
109+ } else {
110+ qWarning() << "Invalid height parameter or image height" << m_height << imageSize.height();
111+ m_sourceSize = QSize(0, 0);
109 }
112 }
110 } else {
113 } else {
111 qWarning() << "Could not find size of" << m_source;
114 qWarning() << "Could not find size of" << m_source;