on xenial help sign in
Catch the case where m_height or image height are <= 0
commitf96138d5602c058c357930f15808963f8a14e6af authorAlbert Astals <albert.astals@canonical.com> dateWed 12 Nov 2014, 12:01 (12 years ago) parent8955e91
1 file changed+3
plugins/Dash/croppedimagesizer.cpp+3
plugins/Dash/croppedimagesizer.cpp+3
@@ -106,6 +106,9 @@ void CroppedImageSizer::requestFinished()
106106 } else {
107107 m_sourceSize = QSize(0, m_height);
108108 }
109+ } else {
110+ qWarning() << "Invalid height parameter or image height" << m_height << imageSize.height();
111+ m_sourceSize = QSize(0, 0);
109112 }
110113 } else {
111114 qWarning() << "Could not find size of" << m_source;