diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index 0161d15730..f28d0d25da 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -27,6 +27,7 @@ along with this program. If not, see . #include // KDE #include +#include #include #include #include @@ -284,7 +285,10 @@ void StartupFeedbackEffect::start(const QString& icon) return cursorSize; }; m_cursorSize = readCursorSize(); - const int iconSize = m_cursorSize / 1.5; + int iconSize = m_cursorSize / 1.5; + if (!iconSize) { + iconSize = IconSize(KIconLoader::Small); + } // get ratio for bouncing cursor so we don't need to manually calculate the sizes for each icon size if (m_type == BouncingFeedback) m_bounceSizesRatio = iconSize / 16.0;