Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Check whether the splash is valid
Halla Rempt010db3e6b7ee
diff --git a/libs/ui/kis_splash_screen.cpp b/libs/ui/kis_splash_screen.cppindex e09a94588c..16cd3c3bff 100644--- a/libs/ui/kis_splash_screen.cpp+++ b/libs/ui/kis_splash_screen.cpp@@ -119,6 +119,8 @@ void KisSplashScreen::updateSplashImage()QPixmap img(splashName);+ if (img.isNull() || img.height() == 0) return;+// Preserve aspect ratio of splash.const int height = splashHeight;const int width = height * img.width() / img.height();