diff --git a/src/guiengine/widgets/spinner_widget.cpp b/src/guiengine/widgets/spinner_widget.cpp index 17d10af3f..05535405c 100644 --- a/src/guiengine/widgets/spinner_widget.cpp +++ b/src/guiengine/widgets/spinner_widget.cpp @@ -458,11 +458,7 @@ stringw SpinnerWidget::getStringValue() const stringw text = StringUtils::insertValues(m_text.c_str(), m_value); return text; } - else - { - assert(false); - } - /** To avoid compiler warnings about missing return statements. */ + // This can happen if the spinner has not been initialized yet. return ""; }