mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Fix menu items that don't respect UI scale (fix #3843)
This commit is contained in:
parent
081f1e535b
commit
264cd98ab4
@ -1691,6 +1691,8 @@ void Widget::onBroadcastMouseMessage(const gfx::Point& screenPos,
|
|||||||
|
|
||||||
void Widget::onInitTheme(InitThemeEvent& ev)
|
void Widget::onInitTheme(InitThemeEvent& ev)
|
||||||
{
|
{
|
||||||
|
// Reset cached font
|
||||||
|
m_font = nullptr;
|
||||||
// Create a copy of the children list and iterate it, just in case a
|
// Create a copy of the children list and iterate it, just in case a
|
||||||
// initTheme() modifies this list (e.g. this can happen in some
|
// initTheme() modifies this list (e.g. this can happen in some
|
||||||
// strange cases with viewports, where scrollbars are added/removed
|
// strange cases with viewports, where scrollbars are added/removed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user