From 264cd98ab4003ea646870c8f38d2d07ef1b71265 Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Thu, 13 Jul 2023 11:11:52 -0300 Subject: [PATCH] Fix menu items that don't respect UI scale (fix #3843) --- src/ui/widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/widget.cpp b/src/ui/widget.cpp index d9a2a1a78..acfe8aa75 100644 --- a/src/ui/widget.cpp +++ b/src/ui/widget.cpp @@ -1691,6 +1691,8 @@ void Widget::onBroadcastMouseMessage(const gfx::Point& screenPos, 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 // initTheme() modifies this list (e.g. this can happen in some // strange cases with viewports, where scrollbars are added/removed