mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 06:19:32 +00:00
Return nullptr instead of assert in Widget::font()
This commit is contained in:
parent
2a16896b7d
commit
3f052cfe2e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user