mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +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
|
she::Font* Widget::font() const
|
||||||
{
|
{
|
||||||
if (!m_font) {
|
if (!m_font && m_theme)
|
||||||
ASSERT(m_theme);
|
|
||||||
m_font = m_theme->getWidgetFont(this);
|
m_font = m_theme->getWidgetFont(this);
|
||||||
}
|
|
||||||
return m_font;
|
return m_font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user