From c094bb60bc8f51cadc71f05e1645811feb86f539 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Sun, 16 Jan 2022 10:32:52 -0500 Subject: [PATCH] FontEditor: Set GlyphEditor glyph on initialization Fixes GlyphEditor appearing blank on start and subsequent re-initializations. --- Userland/Applications/FontEditor/FontEditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp index 291ee4f0f8..c7d32c161b 100644 --- a/Userland/Applications/FontEditor/FontEditor.cpp +++ b/Userland/Applications/FontEditor/FontEditor.cpp @@ -490,8 +490,10 @@ void FontEditorWidget::initialize(String const& path, RefPtr&& } deferred_invoke([this] { + auto glyph = m_glyph_map_widget->active_glyph(); m_glyph_map_widget->set_focus(true); - m_glyph_map_widget->scroll_to_glyph(m_glyph_map_widget->active_glyph()); + m_glyph_map_widget->scroll_to_glyph(glyph); + m_glyph_editor_widget->set_glyph(glyph); update_title(); });