diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-01-10 17:33:56 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-16 11:17:03 +0100 |
commit | 1d79e8cb0f3a27204921c5fe0ac022ec9d76b43f (patch) | |
tree | 1a5269e95ae8a554fa338dac05817e910d621aab /Userland | |
parent | 70a79ea70c4476e41aa314840c07e3e672309a59 (diff) | |
download | serenity-1d79e8cb0f3a27204921c5fe0ac022ec9d76b43f.zip |
LibGUI: Preserve glyph selection when changing font
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp index 259100be82..8a4fabdbd0 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp @@ -52,6 +52,7 @@ GlyphMapWidget::GlyphMapWidget() set_focus_policy(FocusPolicy::StrongFocus); horizontal_scrollbar().set_visible(false); did_change_font(); + set_active_glyph('A'); } GlyphMapWidget::~GlyphMapWidget() @@ -236,7 +237,6 @@ void GlyphMapWidget::did_change_font() { recalculate_content_size(); vertical_scrollbar().set_step(font().glyph_height() + m_vertical_spacing); - set_active_glyph('A'); } void GlyphMapWidget::scroll_to_glyph(int glyph) |