Return nullptr instead of assert in Widget::font()

This commit is contained in:
David Capello 2016-10-17 10:49:37 -03:00
parent 2a16896b7d
commit 3f052cfe2e

View File

@ -160,10 +160,8 @@ void Widget::setTextQuiet(const std::string& text)
she::Font* Widget::font() const
{
if (!m_font) {
ASSERT(m_theme);
if (!m_font && m_theme)
m_font = m_theme->getWidgetFont(this);
}
return m_font;
}